github.com/mattn/anko@v0.1.10/packages/runtime.go (about) 1 package packages 2 3 import ( 4 "reflect" 5 "runtime" 6 7 "github.com/mattn/anko/env" 8 ) 9 10 func init() { 11 env.Packages["runtime"] = map[string]reflect.Value{ 12 "GC": reflect.ValueOf(runtime.GC), 13 "GOARCH": reflect.ValueOf(runtime.GOARCH), 14 "GOMAXPROCS": reflect.ValueOf(runtime.GOMAXPROCS), 15 "GOOS": reflect.ValueOf(runtime.GOOS), 16 "GOROOT": reflect.ValueOf(runtime.GOROOT), 17 "Version": reflect.ValueOf(runtime.Version), 18 } 19 }