start example/test for components access

This commit is contained in:
Michael McLoughlin
2018-12-17 20:52:26 -08:00
parent 8282c9b17e
commit 34a3ddefcc
10 changed files with 160 additions and 12 deletions

View File

@@ -14,6 +14,8 @@ import (
// ctx provides a global build context.
var ctx = NewContext()
func Package(path string) { ctx.Package(path) }
func TEXT(name, signature string) {
ctx.Function(name)
ctx.SignatureExpr(signature)