first pass at a "builder" interface
This commit is contained in:
9
build/global.go
Normal file
9
build/global.go
Normal 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) }
|
||||
Reference in New Issue
Block a user