first pass at a "builder" interface

This commit is contained in:
Michael McLoughlin
2018-11-30 20:43:31 -08:00
parent b65b6c02b8
commit 9b9f5b7e0c
11 changed files with 10069 additions and 84 deletions

9
build/global.go Normal file
View File

@@ -0,0 +1,9 @@
package build
import "os"
// ctx provides a global build context.
var ctx = NewContext()
func TEXT(name string) { ctx.TEXT(name) }
func EOF() { ctx.Generate(os.Stdout, os.Stderr) }