diff --git a/_test/inception.go b/_test/inception.go index 7fbdc0ca..31c3cafc 100644 --- a/_test/inception.go +++ b/_test/inception.go @@ -9,7 +9,7 @@ import ( func main() { log.SetFlags(log.Lshortfile) i := interp.New() - i.Use(interp.ExportValue) + i.Use(interp.Symbols) if _, err := i.Eval(`import "github.com/containous/yaegi/interp"`); err != nil { log.Fatal(err) } diff --git a/cmd/goexports/goexports.go b/cmd/goexports/goexports.go index 2ce06e05..aee93e1d 100644 --- a/cmd/goexports/goexports.go +++ b/cmd/goexports/goexports.go @@ -39,7 +39,7 @@ import ( ) func init() { - Value["{{.PkgName}}"] = map[string]reflect.Value{ + Symbols["{{.PkgName}}"] = map[string]reflect.Value{ // function, constant and variable definitions {{range $key, $value := .Val -}} {{- if $value.Addr -}} diff --git a/example/closure/closure_test.go b/example/closure/closure_test.go index a3dc61b0..a1b9c0ea 100644 --- a/example/closure/closure_test.go +++ b/example/closure/closure_test.go @@ -9,7 +9,7 @@ import ( func TestFunctionCall(t *testing.T) { i := interp.New(interp.GoPath("./_pkg")) - i.Use(stdlib.Value) + i.Use(stdlib.Symbols) _, err := i.Eval(`import "foo/bar"`) if err != nil { diff --git a/example/getfunc/getfunc_test.go b/example/getfunc/getfunc_test.go index d01f5375..bb39fa72 100644 --- a/example/getfunc/getfunc_test.go +++ b/example/getfunc/getfunc_test.go @@ -10,7 +10,7 @@ import ( func TestGetFunc(t *testing.T) { i := interp.New(interp.GoPath("./_gopath/")) - i.Use(stdlib.Value) + i.Use(stdlib.Symbols) if _, err := i.Eval(`import "github.com/foo/bar"`); err != nil { t.Fatal(err) diff --git a/example/pkg/pkg_test.go b/example/pkg/pkg_test.go index 2839d4cb..0023b8b5 100644 --- a/example/pkg/pkg_test.go +++ b/example/pkg/pkg_test.go @@ -77,7 +77,7 @@ func TestPackages(t *testing.T) { // Init go interpreter i := interp.New(interp.GoPath(goPath)) - i.Use(stdlib.Value) // Use binary standard library + i.Use(stdlib.Symbols) // Use binary standard library // Load pkg from sources if _, err = i.Eval(`import "github.com/foo/pkg"`); err != nil { @@ -119,7 +119,7 @@ func TestPackagesError(t *testing.T) { // Init go interpreter i := interp.New(interp.GoPath(test.goPath)) - i.Use(stdlib.Value) // Use binary standard library + i.Use(stdlib.Symbols) // Use binary standard library // Load pkg from sources _, err := i.Eval(`import "github.com/foo/pkg"`) diff --git a/interp/ast.go b/interp/ast.go index 0c1213fa..085e27bb 100644 --- a/interp/ast.go +++ b/interp/ast.go @@ -272,6 +272,8 @@ var actions = [...]string{ aNegate: "-", aNot: "!", aNotEqual: "!=", + aOr: "|", + aOrAssign: "|=", aQuo: "/", aQuoAssign: "/=", aRange: "range", diff --git a/interp/cfg.go b/interp/cfg.go index 15d15a54..2637f685 100644 --- a/interp/cfg.go +++ b/interp/cfg.go @@ -288,7 +288,7 @@ func (interp *Interpreter) cfg(root *node) ([]*node, error) { ipath = n.child[0].rval.String() name = path.Base(ipath) } - if interp.binValue[ipath] != nil && name != "." { + if interp.binPkg[ipath] != nil && name != "." { sc.sym[name] = &symbol{kind: pkgSym, typ: &itype{cat: binPkgT}, path: ipath} } else { sc.sym[name] = &symbol{kind: pkgSym, typ: &itype{cat: srcPkgT}, path: ipath} @@ -1117,7 +1117,7 @@ func (interp *Interpreter) cfg(root *node) ([]*node, error) { // Resolve binary package symbol: a type or a value name := n.child[1].ident pkg := n.child[0].sym.path - if s, ok := interp.binValue[pkg][name]; ok { + if s, ok := interp.binPkg[pkg][name]; ok { if isBinType(s) { n.kind = rtypeExpr n.typ = &itype{cat: valueT, rtype: s.Type().Elem()} @@ -1438,7 +1438,7 @@ func (n *node) isType(sc *scope) bool { case selectorExpr: pkg, name := n.child[0].ident, n.child[1].ident if sym, _, ok := sc.lookup(pkg); ok { - if p, ok := n.interp.binValue[sym.path]; ok && isBinType(p[name]) { + if p, ok := n.interp.binPkg[sym.path]; ok && isBinType(p[name]) { return true // Imported binary type } if p, ok := n.interp.scopes[pkg]; ok && p.sym[name] != nil && p.sym[name].kind == typeSym { diff --git a/interp/gta.go b/interp/gta.go index f78a5390..1feb40be 100644 --- a/interp/gta.go +++ b/interp/gta.go @@ -124,9 +124,9 @@ func (interp *Interpreter) gta(root *node, rpath string) error { ipath = n.child[0].rval.String() name = path.Base(ipath) } - if interp.binValue[ipath] != nil { + if interp.binPkg[ipath] != nil { if name == "." { - for n, v := range interp.binValue[ipath] { + for n, v := range interp.binPkg[ipath] { typ := v.Type() if isBinType(v) { typ = typ.Elem() diff --git a/interp/interp.go b/interp/interp.go index dcd359ba..e485200f 100644 --- a/interp/interp.go +++ b/interp/interp.go @@ -53,8 +53,8 @@ type frame struct { recovered interface{} // to handle panic recover } -// PkgSet stores the map of external values per package -type PkgSet map[string]map[string]reflect.Value +// Exports stores the map of external values per package +type Exports map[string]map[string]reflect.Value // opt stores interpreter options type opt struct { @@ -73,7 +73,7 @@ type Interpreter struct { fset *token.FileSet // fileset to locate node in source code universe *scope // interpreter global level scope scopes map[string]*scope // package level scopes, indexed by package name - binValue PkgSet // runtime binary values used in interpreter + binPkg Exports // runtime binary values used in interpreter } const ( @@ -81,8 +81,8 @@ const ( selfPath = "github.com/containous/yaegi/interp" ) -// ExportValue exposes interpreter values -var ExportValue = PkgSet{ +// Symbols exposes interpreter values +var Symbols = Exports{ selfPath: map[string]reflect.Value{ "New": reflect.ValueOf(New), @@ -91,6 +91,8 @@ var ExportValue = PkgSet{ }, } +func init() { Symbols[selfPath]["Symbols"] = reflect.ValueOf(Symbols) } + // _error is a wrapper of error interface type type _error struct { WError func() string @@ -98,8 +100,6 @@ type _error struct { func (w _error) Error() string { return w.WError() } -func init() { ExportValue[selfPath]["ExportValue"] = reflect.ValueOf(ExportValue) } - // Walk traverses AST n in depth first order, call cbin function // at node entry and cbout function at node exit. func (n *node) Walk(in func(n *node) bool, out func(n *node)) { @@ -121,7 +121,7 @@ func New(options ...func(*Interpreter)) *Interpreter { fset: token.NewFileSet(), universe: initUniverse(), scopes: map[string]*scope{}, - binValue: PkgSet{"": map[string]reflect.Value{"_error": reflect.ValueOf((*_error)(nil))}}, + binPkg: Exports{"": map[string]reflect.Value{"_error": reflect.ValueOf((*_error)(nil))}}, frame: &frame{data: []reflect.Value{}}, } @@ -147,54 +147,54 @@ func CfgDot(interp *Interpreter) { interp.cfgDot = true } func NoRun(interp *Interpreter) { interp.noRun = true } func initUniverse() *scope { - sc := &scope{global: true, sym: symMap{ + sc := &scope{global: true, sym: map[string]*symbol{ // predefined Go types - "bool": &symbol{kind: typeSym, typ: &itype{cat: boolT, name: "bool"}}, - "byte": &symbol{kind: typeSym, typ: &itype{cat: byteT, name: "byte"}}, - "complex64": &symbol{kind: typeSym, typ: &itype{cat: complex64T, name: "complex64"}}, - "complex128": &symbol{kind: typeSym, typ: &itype{cat: complex128T, name: "complex128"}}, - "error": &symbol{kind: typeSym, typ: &itype{cat: errorT, name: "error"}}, - "float32": &symbol{kind: typeSym, typ: &itype{cat: float32T, name: "float32"}}, - "float64": &symbol{kind: typeSym, typ: &itype{cat: float64T, name: "float64"}}, - "int": &symbol{kind: typeSym, typ: &itype{cat: intT, name: "int"}}, - "int8": &symbol{kind: typeSym, typ: &itype{cat: int8T, name: "int8"}}, - "int16": &symbol{kind: typeSym, typ: &itype{cat: int16T, name: "int16"}}, - "int32": &symbol{kind: typeSym, typ: &itype{cat: int32T, name: "int32"}}, - "int64": &symbol{kind: typeSym, typ: &itype{cat: int64T, name: "int64"}}, - "interface{}": &symbol{kind: typeSym, typ: &itype{cat: interfaceT}}, - "rune": &symbol{kind: typeSym, typ: &itype{cat: runeT, name: "rune"}}, - "string": &symbol{kind: typeSym, typ: &itype{cat: stringT, name: "string"}}, - "uint": &symbol{kind: typeSym, typ: &itype{cat: uintT, name: "uint"}}, - "uint8": &symbol{kind: typeSym, typ: &itype{cat: uint8T, name: "uint8"}}, - "uint16": &symbol{kind: typeSym, typ: &itype{cat: uint16T, name: "uint16"}}, - "uint32": &symbol{kind: typeSym, typ: &itype{cat: uint32T, name: "uint32"}}, - "uint64": &symbol{kind: typeSym, typ: &itype{cat: uint64T, name: "uint64"}}, - "uintptr": &symbol{kind: typeSym, typ: &itype{cat: uintptrT, name: "uintptr"}}, + "bool": {kind: typeSym, typ: &itype{cat: boolT, name: "bool"}}, + "byte": {kind: typeSym, typ: &itype{cat: byteT, name: "byte"}}, + "complex64": {kind: typeSym, typ: &itype{cat: complex64T, name: "complex64"}}, + "complex128": {kind: typeSym, typ: &itype{cat: complex128T, name: "complex128"}}, + "error": {kind: typeSym, typ: &itype{cat: errorT, name: "error"}}, + "float32": {kind: typeSym, typ: &itype{cat: float32T, name: "float32"}}, + "float64": {kind: typeSym, typ: &itype{cat: float64T, name: "float64"}}, + "int": {kind: typeSym, typ: &itype{cat: intT, name: "int"}}, + "int8": {kind: typeSym, typ: &itype{cat: int8T, name: "int8"}}, + "int16": {kind: typeSym, typ: &itype{cat: int16T, name: "int16"}}, + "int32": {kind: typeSym, typ: &itype{cat: int32T, name: "int32"}}, + "int64": {kind: typeSym, typ: &itype{cat: int64T, name: "int64"}}, + "interface{}": {kind: typeSym, typ: &itype{cat: interfaceT}}, + "rune": {kind: typeSym, typ: &itype{cat: runeT, name: "rune"}}, + "string": {kind: typeSym, typ: &itype{cat: stringT, name: "string"}}, + "uint": {kind: typeSym, typ: &itype{cat: uintT, name: "uint"}}, + "uint8": {kind: typeSym, typ: &itype{cat: uint8T, name: "uint8"}}, + "uint16": {kind: typeSym, typ: &itype{cat: uint16T, name: "uint16"}}, + "uint32": {kind: typeSym, typ: &itype{cat: uint32T, name: "uint32"}}, + "uint64": {kind: typeSym, typ: &itype{cat: uint64T, name: "uint64"}}, + "uintptr": {kind: typeSym, typ: &itype{cat: uintptrT, name: "uintptr"}}, // predefined Go constants - "false": &symbol{kind: constSym, typ: &itype{cat: boolT, name: "bool"}, rval: reflect.ValueOf(false)}, - "true": &symbol{kind: constSym, typ: &itype{cat: boolT, name: "bool"}, rval: reflect.ValueOf(true)}, - "iota": &symbol{kind: constSym, typ: &itype{cat: intT}}, + "false": {kind: constSym, typ: &itype{cat: boolT, name: "bool"}, rval: reflect.ValueOf(false)}, + "true": {kind: constSym, typ: &itype{cat: boolT, name: "bool"}, rval: reflect.ValueOf(true)}, + "iota": {kind: constSym, typ: &itype{cat: intT}}, // predefined Go zero value - "nil": &symbol{typ: &itype{cat: nilT, untyped: true}}, + "nil": {typ: &itype{cat: nilT, untyped: true}}, // predefined Go builtins - "append": &symbol{kind: bltnSym, builtin: _append}, - "cap": &symbol{kind: bltnSym, builtin: _cap}, - "close": &symbol{kind: bltnSym, builtin: _close}, - "complex": &symbol{kind: bltnSym, builtin: _complex}, - "imag": &symbol{kind: bltnSym, builtin: _imag}, - "copy": &symbol{kind: bltnSym, builtin: _copy}, - "delete": &symbol{kind: bltnSym, builtin: _delete}, - "len": &symbol{kind: bltnSym, builtin: _len}, - "make": &symbol{kind: bltnSym, builtin: _make}, - "new": &symbol{kind: bltnSym, builtin: _new}, - "panic": &symbol{kind: bltnSym, builtin: _panic}, - "print": &symbol{kind: bltnSym, builtin: _print}, - "println": &symbol{kind: bltnSym, builtin: _println}, - "real": &symbol{kind: bltnSym, builtin: _real}, - "recover": &symbol{kind: bltnSym, builtin: _recover}, + "append": {kind: bltnSym, builtin: _append}, + "cap": {kind: bltnSym, builtin: _cap}, + "close": {kind: bltnSym, builtin: _close}, + "complex": {kind: bltnSym, builtin: _complex}, + "imag": {kind: bltnSym, builtin: _imag}, + "copy": {kind: bltnSym, builtin: _copy}, + "delete": {kind: bltnSym, builtin: _delete}, + "len": {kind: bltnSym, builtin: _len}, + "make": {kind: bltnSym, builtin: _make}, + "new": {kind: bltnSym, builtin: _new}, + "panic": {kind: bltnSym, builtin: _panic}, + "print": {kind: bltnSym, builtin: _print}, + "println": {kind: bltnSym, builtin: _println}, + "real": {kind: bltnSym, builtin: _real}, + "recover": {kind: bltnSym, builtin: _recover}, }} return sc } @@ -297,7 +297,7 @@ func (interp *Interpreter) Eval(src string) (reflect.Value, error) { // getWrapper returns the wrapper type of the corresponding interface, or nil if not found func (interp *Interpreter) getWrapper(t reflect.Type) reflect.Type { - if p, ok := interp.binValue[t.PkgPath()]; ok { + if p, ok := interp.binPkg[t.PkgPath()]; ok { return p["_"+t.Name()].Type().Elem() } return nil @@ -305,9 +305,9 @@ func (interp *Interpreter) getWrapper(t reflect.Type) reflect.Type { // Use loads binary runtime symbols in the interpreter context so // they can be used in interpreted code -func (interp *Interpreter) Use(values PkgSet) { +func (interp *Interpreter) Use(values Exports) { for k, v := range values { - interp.binValue[k] = v + interp.binPkg[k] = v } } diff --git a/interp/interp_consistent_test.go b/interp/interp_consistent_test.go index 26fe2e6f..d323086a 100644 --- a/interp/interp_consistent_test.go +++ b/interp/interp_consistent_test.go @@ -79,8 +79,8 @@ func TestInterpConsistencyBuild(t *testing.T) { i := interp.New() i.Name = filePath - i.Use(stdlib.Value) - i.Use(interp.ExportValue) + i.Use(stdlib.Symbols) + i.Use(interp.Symbols) _, err = i.Eval(string(src)) if err != nil { @@ -174,7 +174,7 @@ func TestInterpErrorConsistency(t *testing.T) { i := interp.New() i.Name = filePath - i.Use(stdlib.Value) + i.Use(stdlib.Symbols) _, errEval := i.Eval(string(src)) if errEval == nil { diff --git a/interp/interp_eval_test.go b/interp/interp_eval_test.go index 862c1bd3..a65500bb 100644 --- a/interp/interp_eval_test.go +++ b/interp/interp_eval_test.go @@ -102,7 +102,7 @@ func TestEvalFunc(t *testing.T) { func TestEvalImport(t *testing.T) { i := interp.New() - i.Use(stdlib.Value) + i.Use(stdlib.Symbols) runTests(t, i, []testCase{ {pre: func() { eval(t, i, `import "time"`) }, src: "2 * time.Second", res: "2s"}, }) @@ -110,7 +110,7 @@ func TestEvalImport(t *testing.T) { func TestEvalNil(t *testing.T) { i := interp.New() - i.Use(stdlib.Value) + i.Use(stdlib.Symbols) runTests(t, i, []testCase{ {desc: "assign nil", src: "a := nil", err: "1:28: use of untyped nil"}, {desc: "return nil", pre: func() { eval(t, i, "func getNil() error {return nil}") }, src: "getNil()", res: ""}, @@ -250,7 +250,7 @@ var a = T{ func TestEvalCompositeBin0(t *testing.T) { i := interp.New() - i.Use(stdlib.Value) + i.Use(stdlib.Symbols) eval(t, i, ` import ( "fmt" diff --git a/interp/interp_export_test.go b/interp/interp_export_test.go index 0c5c6688..c207c2aa 100644 --- a/interp/interp_export_test.go +++ b/interp/interp_export_test.go @@ -44,7 +44,7 @@ func (w Wrap) Hello() { w.DoHello() } func TestInterface(t *testing.T) { i := interp.New() // export the Wrap type to the interpreter under virtual "wrap" package - i.Use(interp.PkgSet{ + i.Use(interp.Exports{ "wrap": { "Wrap": reflect.ValueOf((*Wrap)(nil)), }, diff --git a/interp/interp_file_test.go b/interp/interp_file_test.go index 0b0cb014..1e9b6499 100644 --- a/interp/interp_file_test.go +++ b/interp/interp_file_test.go @@ -53,8 +53,8 @@ func runCheck(t *testing.T, p string) { i := interp.New() i.Name = p - i.Use(interp.ExportValue) - i.Use(stdlib.Value) + i.Use(interp.Symbols) + i.Use(stdlib.Symbols) _, err = i.Eval(string(src)) if errWanted { diff --git a/interp/scope.go b/interp/scope.go index e385321c..139ebc6e 100644 --- a/interp/scope.go +++ b/interp/scope.go @@ -58,9 +58,6 @@ type symbol struct { //constant bool // true if symbol value is constant } -// A symMap stores symbols indexed by name -type symMap map[string]*symbol - // scope type stores symbols in maps, and frame layout as array of types // The purposes of scopes are to manage the visibility of each symbol // and to store the memory frame layout information (type and index in frame) @@ -78,12 +75,12 @@ type symMap map[string]*symbol // execution to the index in frame, created exactly from the types layout. // type scope struct { - anc *scope // Ancestor upper scope - def *node // function definition node this scope belongs to, or nil - types []reflect.Type // Frame layout, may be shared by same level scopes - level int // Frame level: number of frame indirections to access var during execution - sym symMap // Map of symbols defined in this current scope - global bool // true if scope refers to global space (single frame for universe and package level scopes) + anc *scope // Ancestor upper scope + def *node // function definition node this scope belongs to, or nil + types []reflect.Type // Frame layout, may be shared by same level scopes + level int // Frame level: number of frame indirections to access var during execution + sym map[string]*symbol // Map of symbols defined in this current scope + global bool // true if scope refers to global space (single frame for universe and package level scopes) } // push creates a new scope and chain it to the current one diff --git a/interp/src.go b/interp/src.go index 395fd1ed..57cd5aa5 100644 --- a/interp/src.go +++ b/interp/src.go @@ -64,10 +64,6 @@ func (interp *Interpreter) importSrcFile(rPath, path, alias string) error { } rootNodes = append(rootNodes, root) - if interp.astDot { - root.astDot(dotX(), name) - } - subRPath := effectivePkg(rPath, path) if err = interp.gta(root, subRPath); err != nil { return err @@ -89,10 +85,6 @@ func (interp *Interpreter) importSrcFile(rPath, path, alias string) error { delete(interp.scopes, pkgName) } - if interp.noRun { - return nil - } - interp.resizeFrame() // Once all package sources have been parsed, execute entry points then init functions diff --git a/interp/type.go b/interp/type.go index 4cfbab26..28ec596a 100644 --- a/interp/type.go +++ b/interp/type.go @@ -363,7 +363,7 @@ func nodeType(interp *Interpreter, sc *scope, n *node) (*itype, error) { } switch sym.typ.cat { case binPkgT: - pkg := interp.binValue[sym.path] + pkg := interp.binPkg[sym.path] if v, ok := pkg[name]; ok { t.cat = valueT t.rtype = v.Type() diff --git a/stdlib/go1_11_archive_tar.go b/stdlib/go1_11_archive_tar.go index d0cf6292..be283d76 100644 --- a/stdlib/go1_11_archive_tar.go +++ b/stdlib/go1_11_archive_tar.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["archive/tar"] = map[string]reflect.Value{ + Symbols["archive/tar"] = map[string]reflect.Value{ // function, constant and variable definitions "ErrFieldTooLong": reflect.ValueOf(&tar.ErrFieldTooLong).Elem(), "ErrHeader": reflect.ValueOf(&tar.ErrHeader).Elem(), diff --git a/stdlib/go1_11_archive_zip.go b/stdlib/go1_11_archive_zip.go index 43eee45a..2fbcd2ef 100644 --- a/stdlib/go1_11_archive_zip.go +++ b/stdlib/go1_11_archive_zip.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["archive/zip"] = map[string]reflect.Value{ + Symbols["archive/zip"] = map[string]reflect.Value{ // function, constant and variable definitions "Deflate": reflect.ValueOf(zip.Deflate), "ErrAlgorithm": reflect.ValueOf(&zip.ErrAlgorithm).Elem(), diff --git a/stdlib/go1_11_bufio.go b/stdlib/go1_11_bufio.go index 93868c5b..051f3096 100644 --- a/stdlib/go1_11_bufio.go +++ b/stdlib/go1_11_bufio.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["bufio"] = map[string]reflect.Value{ + Symbols["bufio"] = map[string]reflect.Value{ // function, constant and variable definitions "ErrAdvanceTooFar": reflect.ValueOf(&bufio.ErrAdvanceTooFar).Elem(), "ErrBufferFull": reflect.ValueOf(&bufio.ErrBufferFull).Elem(), diff --git a/stdlib/go1_11_bytes.go b/stdlib/go1_11_bytes.go index e4ec2886..217978b5 100644 --- a/stdlib/go1_11_bytes.go +++ b/stdlib/go1_11_bytes.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["bytes"] = map[string]reflect.Value{ + Symbols["bytes"] = map[string]reflect.Value{ // function, constant and variable definitions "Compare": reflect.ValueOf(bytes.Compare), "Contains": reflect.ValueOf(bytes.Contains), diff --git a/stdlib/go1_11_compress_bzip2.go b/stdlib/go1_11_compress_bzip2.go index f0e2a87a..94d80f9b 100644 --- a/stdlib/go1_11_compress_bzip2.go +++ b/stdlib/go1_11_compress_bzip2.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["compress/bzip2"] = map[string]reflect.Value{ + Symbols["compress/bzip2"] = map[string]reflect.Value{ // function, constant and variable definitions "NewReader": reflect.ValueOf(bzip2.NewReader), diff --git a/stdlib/go1_11_compress_flate.go b/stdlib/go1_11_compress_flate.go index 476a6d11..ed1d513d 100644 --- a/stdlib/go1_11_compress_flate.go +++ b/stdlib/go1_11_compress_flate.go @@ -11,7 +11,7 @@ import ( ) func init() { - Value["compress/flate"] = map[string]reflect.Value{ + Symbols["compress/flate"] = map[string]reflect.Value{ // function, constant and variable definitions "BestCompression": reflect.ValueOf(flate.BestCompression), "BestSpeed": reflect.ValueOf(flate.BestSpeed), diff --git a/stdlib/go1_11_compress_gzip.go b/stdlib/go1_11_compress_gzip.go index 7e10bd67..83430de8 100644 --- a/stdlib/go1_11_compress_gzip.go +++ b/stdlib/go1_11_compress_gzip.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["compress/gzip"] = map[string]reflect.Value{ + Symbols["compress/gzip"] = map[string]reflect.Value{ // function, constant and variable definitions "BestCompression": reflect.ValueOf(gzip.BestCompression), "BestSpeed": reflect.ValueOf(gzip.BestSpeed), diff --git a/stdlib/go1_11_compress_lzw.go b/stdlib/go1_11_compress_lzw.go index 9a3dfc55..024179b3 100644 --- a/stdlib/go1_11_compress_lzw.go +++ b/stdlib/go1_11_compress_lzw.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["compress/lzw"] = map[string]reflect.Value{ + Symbols["compress/lzw"] = map[string]reflect.Value{ // function, constant and variable definitions "LSB": reflect.ValueOf(lzw.LSB), "MSB": reflect.ValueOf(lzw.MSB), diff --git a/stdlib/go1_11_compress_zlib.go b/stdlib/go1_11_compress_zlib.go index dfa37eee..61452a17 100644 --- a/stdlib/go1_11_compress_zlib.go +++ b/stdlib/go1_11_compress_zlib.go @@ -11,7 +11,7 @@ import ( ) func init() { - Value["compress/zlib"] = map[string]reflect.Value{ + Symbols["compress/zlib"] = map[string]reflect.Value{ // function, constant and variable definitions "BestCompression": reflect.ValueOf(zlib.BestCompression), "BestSpeed": reflect.ValueOf(zlib.BestSpeed), diff --git a/stdlib/go1_11_container_heap.go b/stdlib/go1_11_container_heap.go index eb0ba18d..5ce7eee2 100644 --- a/stdlib/go1_11_container_heap.go +++ b/stdlib/go1_11_container_heap.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["container/heap"] = map[string]reflect.Value{ + Symbols["container/heap"] = map[string]reflect.Value{ // function, constant and variable definitions "Fix": reflect.ValueOf(heap.Fix), "Init": reflect.ValueOf(heap.Init), diff --git a/stdlib/go1_11_container_list.go b/stdlib/go1_11_container_list.go index 34941f75..314cc3a1 100644 --- a/stdlib/go1_11_container_list.go +++ b/stdlib/go1_11_container_list.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["container/list"] = map[string]reflect.Value{ + Symbols["container/list"] = map[string]reflect.Value{ // function, constant and variable definitions "New": reflect.ValueOf(list.New), diff --git a/stdlib/go1_11_container_ring.go b/stdlib/go1_11_container_ring.go index 0fb8696b..e2f05b5a 100644 --- a/stdlib/go1_11_container_ring.go +++ b/stdlib/go1_11_container_ring.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["container/ring"] = map[string]reflect.Value{ + Symbols["container/ring"] = map[string]reflect.Value{ // function, constant and variable definitions "New": reflect.ValueOf(ring.New), diff --git a/stdlib/go1_11_context.go b/stdlib/go1_11_context.go index b7ef0273..5e82826f 100644 --- a/stdlib/go1_11_context.go +++ b/stdlib/go1_11_context.go @@ -11,7 +11,7 @@ import ( ) func init() { - Value["context"] = map[string]reflect.Value{ + Symbols["context"] = map[string]reflect.Value{ // function, constant and variable definitions "Background": reflect.ValueOf(context.Background), "Canceled": reflect.ValueOf(&context.Canceled).Elem(), diff --git a/stdlib/go1_11_crypto.go b/stdlib/go1_11_crypto.go index 029c448a..d1dc4311 100644 --- a/stdlib/go1_11_crypto.go +++ b/stdlib/go1_11_crypto.go @@ -11,7 +11,7 @@ import ( ) func init() { - Value["crypto"] = map[string]reflect.Value{ + Symbols["crypto"] = map[string]reflect.Value{ // function, constant and variable definitions "BLAKE2b_256": reflect.ValueOf(crypto.BLAKE2b_256), "BLAKE2b_384": reflect.ValueOf(crypto.BLAKE2b_384), diff --git a/stdlib/go1_11_crypto_aes.go b/stdlib/go1_11_crypto_aes.go index f6286898..d07d8532 100644 --- a/stdlib/go1_11_crypto_aes.go +++ b/stdlib/go1_11_crypto_aes.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["crypto/aes"] = map[string]reflect.Value{ + Symbols["crypto/aes"] = map[string]reflect.Value{ // function, constant and variable definitions "BlockSize": reflect.ValueOf(aes.BlockSize), "NewCipher": reflect.ValueOf(aes.NewCipher), diff --git a/stdlib/go1_11_crypto_cipher.go b/stdlib/go1_11_crypto_cipher.go index a4800c43..60f62d54 100644 --- a/stdlib/go1_11_crypto_cipher.go +++ b/stdlib/go1_11_crypto_cipher.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["crypto/cipher"] = map[string]reflect.Value{ + Symbols["crypto/cipher"] = map[string]reflect.Value{ // function, constant and variable definitions "NewCBCDecrypter": reflect.ValueOf(cipher.NewCBCDecrypter), "NewCBCEncrypter": reflect.ValueOf(cipher.NewCBCEncrypter), diff --git a/stdlib/go1_11_crypto_des.go b/stdlib/go1_11_crypto_des.go index 49333f2e..acdddc73 100644 --- a/stdlib/go1_11_crypto_des.go +++ b/stdlib/go1_11_crypto_des.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["crypto/des"] = map[string]reflect.Value{ + Symbols["crypto/des"] = map[string]reflect.Value{ // function, constant and variable definitions "BlockSize": reflect.ValueOf(des.BlockSize), "NewCipher": reflect.ValueOf(des.NewCipher), diff --git a/stdlib/go1_11_crypto_dsa.go b/stdlib/go1_11_crypto_dsa.go index 47b8aacb..642a994f 100644 --- a/stdlib/go1_11_crypto_dsa.go +++ b/stdlib/go1_11_crypto_dsa.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["crypto/dsa"] = map[string]reflect.Value{ + Symbols["crypto/dsa"] = map[string]reflect.Value{ // function, constant and variable definitions "ErrInvalidPublicKey": reflect.ValueOf(&dsa.ErrInvalidPublicKey).Elem(), "GenerateKey": reflect.ValueOf(dsa.GenerateKey), diff --git a/stdlib/go1_11_crypto_ecdsa.go b/stdlib/go1_11_crypto_ecdsa.go index 9583c357..28ef83d1 100644 --- a/stdlib/go1_11_crypto_ecdsa.go +++ b/stdlib/go1_11_crypto_ecdsa.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["crypto/ecdsa"] = map[string]reflect.Value{ + Symbols["crypto/ecdsa"] = map[string]reflect.Value{ // function, constant and variable definitions "GenerateKey": reflect.ValueOf(ecdsa.GenerateKey), "Sign": reflect.ValueOf(ecdsa.Sign), diff --git a/stdlib/go1_11_crypto_elliptic.go b/stdlib/go1_11_crypto_elliptic.go index fc625e21..bc19daa0 100644 --- a/stdlib/go1_11_crypto_elliptic.go +++ b/stdlib/go1_11_crypto_elliptic.go @@ -11,7 +11,7 @@ import ( ) func init() { - Value["crypto/elliptic"] = map[string]reflect.Value{ + Symbols["crypto/elliptic"] = map[string]reflect.Value{ // function, constant and variable definitions "GenerateKey": reflect.ValueOf(elliptic.GenerateKey), "Marshal": reflect.ValueOf(elliptic.Marshal), diff --git a/stdlib/go1_11_crypto_hmac.go b/stdlib/go1_11_crypto_hmac.go index 6b7a22bd..a74e55f3 100644 --- a/stdlib/go1_11_crypto_hmac.go +++ b/stdlib/go1_11_crypto_hmac.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["crypto/hmac"] = map[string]reflect.Value{ + Symbols["crypto/hmac"] = map[string]reflect.Value{ // function, constant and variable definitions "Equal": reflect.ValueOf(hmac.Equal), "New": reflect.ValueOf(hmac.New), diff --git a/stdlib/go1_11_crypto_md5.go b/stdlib/go1_11_crypto_md5.go index f0f8fd62..555bc577 100644 --- a/stdlib/go1_11_crypto_md5.go +++ b/stdlib/go1_11_crypto_md5.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["crypto/md5"] = map[string]reflect.Value{ + Symbols["crypto/md5"] = map[string]reflect.Value{ // function, constant and variable definitions "BlockSize": reflect.ValueOf(md5.BlockSize), "New": reflect.ValueOf(md5.New), diff --git a/stdlib/go1_11_crypto_rand.go b/stdlib/go1_11_crypto_rand.go index 5ce75672..aba8a846 100644 --- a/stdlib/go1_11_crypto_rand.go +++ b/stdlib/go1_11_crypto_rand.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["crypto/rand"] = map[string]reflect.Value{ + Symbols["crypto/rand"] = map[string]reflect.Value{ // function, constant and variable definitions "Int": reflect.ValueOf(rand.Int), "Prime": reflect.ValueOf(rand.Prime), diff --git a/stdlib/go1_11_crypto_rc4.go b/stdlib/go1_11_crypto_rc4.go index 947aa343..f6aa4236 100644 --- a/stdlib/go1_11_crypto_rc4.go +++ b/stdlib/go1_11_crypto_rc4.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["crypto/rc4"] = map[string]reflect.Value{ + Symbols["crypto/rc4"] = map[string]reflect.Value{ // function, constant and variable definitions "NewCipher": reflect.ValueOf(rc4.NewCipher), diff --git a/stdlib/go1_11_crypto_rsa.go b/stdlib/go1_11_crypto_rsa.go index ed889d6d..859b431e 100644 --- a/stdlib/go1_11_crypto_rsa.go +++ b/stdlib/go1_11_crypto_rsa.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["crypto/rsa"] = map[string]reflect.Value{ + Symbols["crypto/rsa"] = map[string]reflect.Value{ // function, constant and variable definitions "DecryptOAEP": reflect.ValueOf(rsa.DecryptOAEP), "DecryptPKCS1v15": reflect.ValueOf(rsa.DecryptPKCS1v15), diff --git a/stdlib/go1_11_crypto_sha1.go b/stdlib/go1_11_crypto_sha1.go index 21777bd4..c04188d1 100644 --- a/stdlib/go1_11_crypto_sha1.go +++ b/stdlib/go1_11_crypto_sha1.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["crypto/sha1"] = map[string]reflect.Value{ + Symbols["crypto/sha1"] = map[string]reflect.Value{ // function, constant and variable definitions "BlockSize": reflect.ValueOf(sha1.BlockSize), "New": reflect.ValueOf(sha1.New), diff --git a/stdlib/go1_11_crypto_sha256.go b/stdlib/go1_11_crypto_sha256.go index 312109f4..00d64a58 100644 --- a/stdlib/go1_11_crypto_sha256.go +++ b/stdlib/go1_11_crypto_sha256.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["crypto/sha256"] = map[string]reflect.Value{ + Symbols["crypto/sha256"] = map[string]reflect.Value{ // function, constant and variable definitions "BlockSize": reflect.ValueOf(sha256.BlockSize), "New": reflect.ValueOf(sha256.New), diff --git a/stdlib/go1_11_crypto_sha512.go b/stdlib/go1_11_crypto_sha512.go index a1199543..ad7503dc 100644 --- a/stdlib/go1_11_crypto_sha512.go +++ b/stdlib/go1_11_crypto_sha512.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["crypto/sha512"] = map[string]reflect.Value{ + Symbols["crypto/sha512"] = map[string]reflect.Value{ // function, constant and variable definitions "BlockSize": reflect.ValueOf(sha512.BlockSize), "New": reflect.ValueOf(sha512.New), diff --git a/stdlib/go1_11_crypto_subtle.go b/stdlib/go1_11_crypto_subtle.go index 0a898493..68c5d711 100644 --- a/stdlib/go1_11_crypto_subtle.go +++ b/stdlib/go1_11_crypto_subtle.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["crypto/subtle"] = map[string]reflect.Value{ + Symbols["crypto/subtle"] = map[string]reflect.Value{ // function, constant and variable definitions "ConstantTimeByteEq": reflect.ValueOf(subtle.ConstantTimeByteEq), "ConstantTimeCompare": reflect.ValueOf(subtle.ConstantTimeCompare), diff --git a/stdlib/go1_11_crypto_tls.go b/stdlib/go1_11_crypto_tls.go index 329725f1..3ee5bbb9 100644 --- a/stdlib/go1_11_crypto_tls.go +++ b/stdlib/go1_11_crypto_tls.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["crypto/tls"] = map[string]reflect.Value{ + Symbols["crypto/tls"] = map[string]reflect.Value{ // function, constant and variable definitions "Client": reflect.ValueOf(tls.Client), "CurveP256": reflect.ValueOf(tls.CurveP256), diff --git a/stdlib/go1_11_crypto_x509.go b/stdlib/go1_11_crypto_x509.go index 0ac8eaa1..25acffff 100644 --- a/stdlib/go1_11_crypto_x509.go +++ b/stdlib/go1_11_crypto_x509.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["crypto/x509"] = map[string]reflect.Value{ + Symbols["crypto/x509"] = map[string]reflect.Value{ // function, constant and variable definitions "CANotAuthorizedForExtKeyUsage": reflect.ValueOf(x509.CANotAuthorizedForExtKeyUsage), "CANotAuthorizedForThisName": reflect.ValueOf(x509.CANotAuthorizedForThisName), diff --git a/stdlib/go1_11_crypto_x509_pkix.go b/stdlib/go1_11_crypto_x509_pkix.go index ebd7c81d..77ab7b07 100644 --- a/stdlib/go1_11_crypto_x509_pkix.go +++ b/stdlib/go1_11_crypto_x509_pkix.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["crypto/x509/pkix"] = map[string]reflect.Value{ + Symbols["crypto/x509/pkix"] = map[string]reflect.Value{ // function, constant and variable definitions // type definitions diff --git a/stdlib/go1_11_database_sql.go b/stdlib/go1_11_database_sql.go index 01dd1896..a2b0ee67 100644 --- a/stdlib/go1_11_database_sql.go +++ b/stdlib/go1_11_database_sql.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["database/sql"] = map[string]reflect.Value{ + Symbols["database/sql"] = map[string]reflect.Value{ // function, constant and variable definitions "Drivers": reflect.ValueOf(sql.Drivers), "ErrConnDone": reflect.ValueOf(&sql.ErrConnDone).Elem(), diff --git a/stdlib/go1_11_database_sql_driver.go b/stdlib/go1_11_database_sql_driver.go index 2b978fec..91bbea40 100644 --- a/stdlib/go1_11_database_sql_driver.go +++ b/stdlib/go1_11_database_sql_driver.go @@ -11,7 +11,7 @@ import ( ) func init() { - Value["database/sql/driver"] = map[string]reflect.Value{ + Symbols["database/sql/driver"] = map[string]reflect.Value{ // function, constant and variable definitions "Bool": reflect.ValueOf(&driver.Bool).Elem(), "DefaultParameterConverter": reflect.ValueOf(&driver.DefaultParameterConverter).Elem(), diff --git a/stdlib/go1_11_encoding.go b/stdlib/go1_11_encoding.go index 8ea3fc83..7d1e28f4 100644 --- a/stdlib/go1_11_encoding.go +++ b/stdlib/go1_11_encoding.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["encoding"] = map[string]reflect.Value{ + Symbols["encoding"] = map[string]reflect.Value{ // function, constant and variable definitions // type definitions diff --git a/stdlib/go1_11_encoding_ascii85.go b/stdlib/go1_11_encoding_ascii85.go index 6105299a..b41e142c 100644 --- a/stdlib/go1_11_encoding_ascii85.go +++ b/stdlib/go1_11_encoding_ascii85.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["encoding/ascii85"] = map[string]reflect.Value{ + Symbols["encoding/ascii85"] = map[string]reflect.Value{ // function, constant and variable definitions "Decode": reflect.ValueOf(ascii85.Decode), "Encode": reflect.ValueOf(ascii85.Encode), diff --git a/stdlib/go1_11_encoding_asn1.go b/stdlib/go1_11_encoding_asn1.go index 8ab0681c..5b3388aa 100644 --- a/stdlib/go1_11_encoding_asn1.go +++ b/stdlib/go1_11_encoding_asn1.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["encoding/asn1"] = map[string]reflect.Value{ + Symbols["encoding/asn1"] = map[string]reflect.Value{ // function, constant and variable definitions "ClassApplication": reflect.ValueOf(asn1.ClassApplication), "ClassContextSpecific": reflect.ValueOf(asn1.ClassContextSpecific), diff --git a/stdlib/go1_11_encoding_base32.go b/stdlib/go1_11_encoding_base32.go index a4c1c7be..6bc8f0b3 100644 --- a/stdlib/go1_11_encoding_base32.go +++ b/stdlib/go1_11_encoding_base32.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["encoding/base32"] = map[string]reflect.Value{ + Symbols["encoding/base32"] = map[string]reflect.Value{ // function, constant and variable definitions "HexEncoding": reflect.ValueOf(&base32.HexEncoding).Elem(), "NewDecoder": reflect.ValueOf(base32.NewDecoder), diff --git a/stdlib/go1_11_encoding_base64.go b/stdlib/go1_11_encoding_base64.go index b7ab12fe..aeb4de56 100644 --- a/stdlib/go1_11_encoding_base64.go +++ b/stdlib/go1_11_encoding_base64.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["encoding/base64"] = map[string]reflect.Value{ + Symbols["encoding/base64"] = map[string]reflect.Value{ // function, constant and variable definitions "NewDecoder": reflect.ValueOf(base64.NewDecoder), "NewEncoder": reflect.ValueOf(base64.NewEncoder), diff --git a/stdlib/go1_11_encoding_binary.go b/stdlib/go1_11_encoding_binary.go index 236d8edb..5420d814 100644 --- a/stdlib/go1_11_encoding_binary.go +++ b/stdlib/go1_11_encoding_binary.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["encoding/binary"] = map[string]reflect.Value{ + Symbols["encoding/binary"] = map[string]reflect.Value{ // function, constant and variable definitions "BigEndian": reflect.ValueOf(&binary.BigEndian).Elem(), "LittleEndian": reflect.ValueOf(&binary.LittleEndian).Elem(), diff --git a/stdlib/go1_11_encoding_csv.go b/stdlib/go1_11_encoding_csv.go index ed8d60dc..14d19f82 100644 --- a/stdlib/go1_11_encoding_csv.go +++ b/stdlib/go1_11_encoding_csv.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["encoding/csv"] = map[string]reflect.Value{ + Symbols["encoding/csv"] = map[string]reflect.Value{ // function, constant and variable definitions "ErrBareQuote": reflect.ValueOf(&csv.ErrBareQuote).Elem(), "ErrFieldCount": reflect.ValueOf(&csv.ErrFieldCount).Elem(), diff --git a/stdlib/go1_11_encoding_gob.go b/stdlib/go1_11_encoding_gob.go index 93b7df24..1aa8877d 100644 --- a/stdlib/go1_11_encoding_gob.go +++ b/stdlib/go1_11_encoding_gob.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["encoding/gob"] = map[string]reflect.Value{ + Symbols["encoding/gob"] = map[string]reflect.Value{ // function, constant and variable definitions "NewDecoder": reflect.ValueOf(gob.NewDecoder), "NewEncoder": reflect.ValueOf(gob.NewEncoder), diff --git a/stdlib/go1_11_encoding_hex.go b/stdlib/go1_11_encoding_hex.go index 44d94e3a..46d6f26a 100644 --- a/stdlib/go1_11_encoding_hex.go +++ b/stdlib/go1_11_encoding_hex.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["encoding/hex"] = map[string]reflect.Value{ + Symbols["encoding/hex"] = map[string]reflect.Value{ // function, constant and variable definitions "Decode": reflect.ValueOf(hex.Decode), "DecodeString": reflect.ValueOf(hex.DecodeString), diff --git a/stdlib/go1_11_encoding_json.go b/stdlib/go1_11_encoding_json.go index 2c55baa2..2d326cd3 100644 --- a/stdlib/go1_11_encoding_json.go +++ b/stdlib/go1_11_encoding_json.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["encoding/json"] = map[string]reflect.Value{ + Symbols["encoding/json"] = map[string]reflect.Value{ // function, constant and variable definitions "Compact": reflect.ValueOf(json.Compact), "HTMLEscape": reflect.ValueOf(json.HTMLEscape), diff --git a/stdlib/go1_11_encoding_pem.go b/stdlib/go1_11_encoding_pem.go index 4afac36c..ce3d4606 100644 --- a/stdlib/go1_11_encoding_pem.go +++ b/stdlib/go1_11_encoding_pem.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["encoding/pem"] = map[string]reflect.Value{ + Symbols["encoding/pem"] = map[string]reflect.Value{ // function, constant and variable definitions "Decode": reflect.ValueOf(pem.Decode), "Encode": reflect.ValueOf(pem.Encode), diff --git a/stdlib/go1_11_encoding_xml.go b/stdlib/go1_11_encoding_xml.go index d3c6666f..e2c62b33 100644 --- a/stdlib/go1_11_encoding_xml.go +++ b/stdlib/go1_11_encoding_xml.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["encoding/xml"] = map[string]reflect.Value{ + Symbols["encoding/xml"] = map[string]reflect.Value{ // function, constant and variable definitions "CopyToken": reflect.ValueOf(xml.CopyToken), "Escape": reflect.ValueOf(xml.Escape), diff --git a/stdlib/go1_11_errors.go b/stdlib/go1_11_errors.go index b316ed40..64968fd0 100644 --- a/stdlib/go1_11_errors.go +++ b/stdlib/go1_11_errors.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["errors"] = map[string]reflect.Value{ + Symbols["errors"] = map[string]reflect.Value{ // function, constant and variable definitions "New": reflect.ValueOf(errors.New), diff --git a/stdlib/go1_11_expvar.go b/stdlib/go1_11_expvar.go index 22c4cb82..cbf0c291 100644 --- a/stdlib/go1_11_expvar.go +++ b/stdlib/go1_11_expvar.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["expvar"] = map[string]reflect.Value{ + Symbols["expvar"] = map[string]reflect.Value{ // function, constant and variable definitions "Do": reflect.ValueOf(expvar.Do), "Get": reflect.ValueOf(expvar.Get), diff --git a/stdlib/go1_11_flag.go b/stdlib/go1_11_flag.go index 0bee4bde..e72ecbf3 100644 --- a/stdlib/go1_11_flag.go +++ b/stdlib/go1_11_flag.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["flag"] = map[string]reflect.Value{ + Symbols["flag"] = map[string]reflect.Value{ // function, constant and variable definitions "Arg": reflect.ValueOf(flag.Arg), "Args": reflect.ValueOf(flag.Args), diff --git a/stdlib/go1_11_fmt.go b/stdlib/go1_11_fmt.go index af8315c1..a16eb3b4 100644 --- a/stdlib/go1_11_fmt.go +++ b/stdlib/go1_11_fmt.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["fmt"] = map[string]reflect.Value{ + Symbols["fmt"] = map[string]reflect.Value{ // function, constant and variable definitions "Errorf": reflect.ValueOf(fmt.Errorf), "Fprint": reflect.ValueOf(fmt.Fprint), diff --git a/stdlib/go1_11_go_ast.go b/stdlib/go1_11_go_ast.go index 043d7bfd..cc32c1b8 100644 --- a/stdlib/go1_11_go_ast.go +++ b/stdlib/go1_11_go_ast.go @@ -11,7 +11,7 @@ import ( ) func init() { - Value["go/ast"] = map[string]reflect.Value{ + Symbols["go/ast"] = map[string]reflect.Value{ // function, constant and variable definitions "Bad": reflect.ValueOf(ast.Bad), "Con": reflect.ValueOf(ast.Con), diff --git a/stdlib/go1_11_go_build.go b/stdlib/go1_11_go_build.go index 8d9912df..3eff8f2d 100644 --- a/stdlib/go1_11_go_build.go +++ b/stdlib/go1_11_go_build.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["go/build"] = map[string]reflect.Value{ + Symbols["go/build"] = map[string]reflect.Value{ // function, constant and variable definitions "AllowBinary": reflect.ValueOf(build.AllowBinary), "ArchChar": reflect.ValueOf(build.ArchChar), diff --git a/stdlib/go1_11_go_constant.go b/stdlib/go1_11_go_constant.go index aa4d3b25..e942bd82 100644 --- a/stdlib/go1_11_go_constant.go +++ b/stdlib/go1_11_go_constant.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["go/constant"] = map[string]reflect.Value{ + Symbols["go/constant"] = map[string]reflect.Value{ // function, constant and variable definitions "BinaryOp": reflect.ValueOf(constant.BinaryOp), "BitLen": reflect.ValueOf(constant.BitLen), diff --git a/stdlib/go1_11_go_doc.go b/stdlib/go1_11_go_doc.go index 931f27c1..f7839cad 100644 --- a/stdlib/go1_11_go_doc.go +++ b/stdlib/go1_11_go_doc.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["go/doc"] = map[string]reflect.Value{ + Symbols["go/doc"] = map[string]reflect.Value{ // function, constant and variable definitions "AllDecls": reflect.ValueOf(doc.AllDecls), "AllMethods": reflect.ValueOf(doc.AllMethods), diff --git a/stdlib/go1_11_go_format.go b/stdlib/go1_11_go_format.go index 2096dfa1..3ed7c576 100644 --- a/stdlib/go1_11_go_format.go +++ b/stdlib/go1_11_go_format.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["go/format"] = map[string]reflect.Value{ + Symbols["go/format"] = map[string]reflect.Value{ // function, constant and variable definitions "Node": reflect.ValueOf(format.Node), "Source": reflect.ValueOf(format.Source), diff --git a/stdlib/go1_11_go_importer.go b/stdlib/go1_11_go_importer.go index ccf6a4da..a3642c10 100644 --- a/stdlib/go1_11_go_importer.go +++ b/stdlib/go1_11_go_importer.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["go/importer"] = map[string]reflect.Value{ + Symbols["go/importer"] = map[string]reflect.Value{ // function, constant and variable definitions "Default": reflect.ValueOf(importer.Default), "For": reflect.ValueOf(importer.For), diff --git a/stdlib/go1_11_go_parser.go b/stdlib/go1_11_go_parser.go index 2c3ef072..35c7162e 100644 --- a/stdlib/go1_11_go_parser.go +++ b/stdlib/go1_11_go_parser.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["go/parser"] = map[string]reflect.Value{ + Symbols["go/parser"] = map[string]reflect.Value{ // function, constant and variable definitions "AllErrors": reflect.ValueOf(parser.AllErrors), "DeclarationErrors": reflect.ValueOf(parser.DeclarationErrors), diff --git a/stdlib/go1_11_go_printer.go b/stdlib/go1_11_go_printer.go index 735df26a..3e8ac762 100644 --- a/stdlib/go1_11_go_printer.go +++ b/stdlib/go1_11_go_printer.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["go/printer"] = map[string]reflect.Value{ + Symbols["go/printer"] = map[string]reflect.Value{ // function, constant and variable definitions "Fprint": reflect.ValueOf(printer.Fprint), "RawFormat": reflect.ValueOf(printer.RawFormat), diff --git a/stdlib/go1_11_go_scanner.go b/stdlib/go1_11_go_scanner.go index 626fa92a..04a1a344 100644 --- a/stdlib/go1_11_go_scanner.go +++ b/stdlib/go1_11_go_scanner.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["go/scanner"] = map[string]reflect.Value{ + Symbols["go/scanner"] = map[string]reflect.Value{ // function, constant and variable definitions "PrintError": reflect.ValueOf(scanner.PrintError), "ScanComments": reflect.ValueOf(scanner.ScanComments), diff --git a/stdlib/go1_11_go_token.go b/stdlib/go1_11_go_token.go index 4b450554..9d7c03ed 100644 --- a/stdlib/go1_11_go_token.go +++ b/stdlib/go1_11_go_token.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["go/token"] = map[string]reflect.Value{ + Symbols["go/token"] = map[string]reflect.Value{ // function, constant and variable definitions "ADD": reflect.ValueOf(token.ADD), "ADD_ASSIGN": reflect.ValueOf(token.ADD_ASSIGN), diff --git a/stdlib/go1_11_go_types.go b/stdlib/go1_11_go_types.go index f1c62782..2a837b20 100644 --- a/stdlib/go1_11_go_types.go +++ b/stdlib/go1_11_go_types.go @@ -11,7 +11,7 @@ import ( ) func init() { - Value["go/types"] = map[string]reflect.Value{ + Symbols["go/types"] = map[string]reflect.Value{ // function, constant and variable definitions "AssertableTo": reflect.ValueOf(types.AssertableTo), "AssignableTo": reflect.ValueOf(types.AssignableTo), diff --git a/stdlib/go1_11_hash.go b/stdlib/go1_11_hash.go index 6c4d8c99..b10b2dd1 100644 --- a/stdlib/go1_11_hash.go +++ b/stdlib/go1_11_hash.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["hash"] = map[string]reflect.Value{ + Symbols["hash"] = map[string]reflect.Value{ // function, constant and variable definitions // type definitions diff --git a/stdlib/go1_11_hash_adler32.go b/stdlib/go1_11_hash_adler32.go index 48880df4..23909d21 100644 --- a/stdlib/go1_11_hash_adler32.go +++ b/stdlib/go1_11_hash_adler32.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["hash/adler32"] = map[string]reflect.Value{ + Symbols["hash/adler32"] = map[string]reflect.Value{ // function, constant and variable definitions "Checksum": reflect.ValueOf(adler32.Checksum), "New": reflect.ValueOf(adler32.New), diff --git a/stdlib/go1_11_hash_crc32.go b/stdlib/go1_11_hash_crc32.go index 82910392..e6526cc9 100644 --- a/stdlib/go1_11_hash_crc32.go +++ b/stdlib/go1_11_hash_crc32.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["hash/crc32"] = map[string]reflect.Value{ + Symbols["hash/crc32"] = map[string]reflect.Value{ // function, constant and variable definitions "Castagnoli": reflect.ValueOf(uint32(crc32.Castagnoli)), "Checksum": reflect.ValueOf(crc32.Checksum), diff --git a/stdlib/go1_11_hash_crc64.go b/stdlib/go1_11_hash_crc64.go index 37e02ebc..2144208c 100644 --- a/stdlib/go1_11_hash_crc64.go +++ b/stdlib/go1_11_hash_crc64.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["hash/crc64"] = map[string]reflect.Value{ + Symbols["hash/crc64"] = map[string]reflect.Value{ // function, constant and variable definitions "Checksum": reflect.ValueOf(crc64.Checksum), "ECMA": reflect.ValueOf(uint64(crc64.ECMA)), diff --git a/stdlib/go1_11_hash_fnv.go b/stdlib/go1_11_hash_fnv.go index 7413e0e6..965141fc 100644 --- a/stdlib/go1_11_hash_fnv.go +++ b/stdlib/go1_11_hash_fnv.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["hash/fnv"] = map[string]reflect.Value{ + Symbols["hash/fnv"] = map[string]reflect.Value{ // function, constant and variable definitions "New128": reflect.ValueOf(fnv.New128), "New128a": reflect.ValueOf(fnv.New128a), diff --git a/stdlib/go1_11_html.go b/stdlib/go1_11_html.go index 91df88fb..5f6bf088 100644 --- a/stdlib/go1_11_html.go +++ b/stdlib/go1_11_html.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["html"] = map[string]reflect.Value{ + Symbols["html"] = map[string]reflect.Value{ // function, constant and variable definitions "EscapeString": reflect.ValueOf(html.EscapeString), "UnescapeString": reflect.ValueOf(html.UnescapeString), diff --git a/stdlib/go1_11_html_template.go b/stdlib/go1_11_html_template.go index 8ad93157..628534d0 100644 --- a/stdlib/go1_11_html_template.go +++ b/stdlib/go1_11_html_template.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["html/template"] = map[string]reflect.Value{ + Symbols["html/template"] = map[string]reflect.Value{ // function, constant and variable definitions "ErrAmbigContext": reflect.ValueOf(template.ErrAmbigContext), "ErrBadHTML": reflect.ValueOf(template.ErrBadHTML), diff --git a/stdlib/go1_11_image.go b/stdlib/go1_11_image.go index d8ac7b1a..fd7d6a91 100644 --- a/stdlib/go1_11_image.go +++ b/stdlib/go1_11_image.go @@ -11,7 +11,7 @@ import ( ) func init() { - Value["image"] = map[string]reflect.Value{ + Symbols["image"] = map[string]reflect.Value{ // function, constant and variable definitions "Black": reflect.ValueOf(&image.Black).Elem(), "Decode": reflect.ValueOf(image.Decode), diff --git a/stdlib/go1_11_image_color.go b/stdlib/go1_11_image_color.go index 21d4c089..2f5b0052 100644 --- a/stdlib/go1_11_image_color.go +++ b/stdlib/go1_11_image_color.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["image/color"] = map[string]reflect.Value{ + Symbols["image/color"] = map[string]reflect.Value{ // function, constant and variable definitions "Alpha16Model": reflect.ValueOf(&color.Alpha16Model).Elem(), "AlphaModel": reflect.ValueOf(&color.AlphaModel).Elem(), diff --git a/stdlib/go1_11_image_color_palette.go b/stdlib/go1_11_image_color_palette.go index e07f04f9..eb06687d 100644 --- a/stdlib/go1_11_image_color_palette.go +++ b/stdlib/go1_11_image_color_palette.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["image/color/palette"] = map[string]reflect.Value{ + Symbols["image/color/palette"] = map[string]reflect.Value{ // function, constant and variable definitions "Plan9": reflect.ValueOf(&palette.Plan9).Elem(), "WebSafe": reflect.ValueOf(&palette.WebSafe).Elem(), diff --git a/stdlib/go1_11_image_draw.go b/stdlib/go1_11_image_draw.go index fb05869d..ccb7db7b 100644 --- a/stdlib/go1_11_image_draw.go +++ b/stdlib/go1_11_image_draw.go @@ -12,7 +12,7 @@ import ( ) func init() { - Value["image/draw"] = map[string]reflect.Value{ + Symbols["image/draw"] = map[string]reflect.Value{ // function, constant and variable definitions "Draw": reflect.ValueOf(draw.Draw), "DrawMask": reflect.ValueOf(draw.DrawMask), diff --git a/stdlib/go1_11_image_gif.go b/stdlib/go1_11_image_gif.go index 50e3b6bf..766c93ce 100644 --- a/stdlib/go1_11_image_gif.go +++ b/stdlib/go1_11_image_gif.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["image/gif"] = map[string]reflect.Value{ + Symbols["image/gif"] = map[string]reflect.Value{ // function, constant and variable definitions "Decode": reflect.ValueOf(gif.Decode), "DecodeAll": reflect.ValueOf(gif.DecodeAll), diff --git a/stdlib/go1_11_image_jpeg.go b/stdlib/go1_11_image_jpeg.go index dfd2c775..de500bc2 100644 --- a/stdlib/go1_11_image_jpeg.go +++ b/stdlib/go1_11_image_jpeg.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["image/jpeg"] = map[string]reflect.Value{ + Symbols["image/jpeg"] = map[string]reflect.Value{ // function, constant and variable definitions "Decode": reflect.ValueOf(jpeg.Decode), "DecodeConfig": reflect.ValueOf(jpeg.DecodeConfig), diff --git a/stdlib/go1_11_image_png.go b/stdlib/go1_11_image_png.go index c0b925f6..92f1963a 100644 --- a/stdlib/go1_11_image_png.go +++ b/stdlib/go1_11_image_png.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["image/png"] = map[string]reflect.Value{ + Symbols["image/png"] = map[string]reflect.Value{ // function, constant and variable definitions "BestCompression": reflect.ValueOf(png.BestCompression), "BestSpeed": reflect.ValueOf(png.BestSpeed), diff --git a/stdlib/go1_11_index_suffixarray.go b/stdlib/go1_11_index_suffixarray.go index eae52406..cc8f09e5 100644 --- a/stdlib/go1_11_index_suffixarray.go +++ b/stdlib/go1_11_index_suffixarray.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["index/suffixarray"] = map[string]reflect.Value{ + Symbols["index/suffixarray"] = map[string]reflect.Value{ // function, constant and variable definitions "New": reflect.ValueOf(suffixarray.New), diff --git a/stdlib/go1_11_io.go b/stdlib/go1_11_io.go index 230fba38..35746666 100644 --- a/stdlib/go1_11_io.go +++ b/stdlib/go1_11_io.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["io"] = map[string]reflect.Value{ + Symbols["io"] = map[string]reflect.Value{ // function, constant and variable definitions "Copy": reflect.ValueOf(io.Copy), "CopyBuffer": reflect.ValueOf(io.CopyBuffer), diff --git a/stdlib/go1_11_io_ioutil.go b/stdlib/go1_11_io_ioutil.go index 42c41b46..52ff7a47 100644 --- a/stdlib/go1_11_io_ioutil.go +++ b/stdlib/go1_11_io_ioutil.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["io/ioutil"] = map[string]reflect.Value{ + Symbols["io/ioutil"] = map[string]reflect.Value{ // function, constant and variable definitions "Discard": reflect.ValueOf(&ioutil.Discard).Elem(), "NopCloser": reflect.ValueOf(ioutil.NopCloser), diff --git a/stdlib/go1_11_log.go b/stdlib/go1_11_log.go index 2bf30c66..49a4066c 100644 --- a/stdlib/go1_11_log.go +++ b/stdlib/go1_11_log.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["log"] = map[string]reflect.Value{ + Symbols["log"] = map[string]reflect.Value{ // function, constant and variable definitions "Fatal": reflect.ValueOf(log.Fatal), "Fatalf": reflect.ValueOf(log.Fatalf), diff --git a/stdlib/go1_11_log_syslog.go b/stdlib/go1_11_log_syslog.go index 82519063..256b00ac 100644 --- a/stdlib/go1_11_log_syslog.go +++ b/stdlib/go1_11_log_syslog.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["log/syslog"] = map[string]reflect.Value{ + Symbols["log/syslog"] = map[string]reflect.Value{ // function, constant and variable definitions "Dial": reflect.ValueOf(syslog.Dial), "LOG_ALERT": reflect.ValueOf(syslog.LOG_ALERT), diff --git a/stdlib/go1_11_math.go b/stdlib/go1_11_math.go index 69e3200b..78113f43 100644 --- a/stdlib/go1_11_math.go +++ b/stdlib/go1_11_math.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["math"] = map[string]reflect.Value{ + Symbols["math"] = map[string]reflect.Value{ // function, constant and variable definitions "Abs": reflect.ValueOf(math.Abs), "Acos": reflect.ValueOf(math.Acos), diff --git a/stdlib/go1_11_math_big.go b/stdlib/go1_11_math_big.go index 9c59af65..0f5a8395 100644 --- a/stdlib/go1_11_math_big.go +++ b/stdlib/go1_11_math_big.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["math/big"] = map[string]reflect.Value{ + Symbols["math/big"] = map[string]reflect.Value{ // function, constant and variable definitions "Above": reflect.ValueOf(big.Above), "AwayFromZero": reflect.ValueOf(big.AwayFromZero), diff --git a/stdlib/go1_11_math_bits.go b/stdlib/go1_11_math_bits.go index 485854f3..86fcd55d 100644 --- a/stdlib/go1_11_math_bits.go +++ b/stdlib/go1_11_math_bits.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["math/bits"] = map[string]reflect.Value{ + Symbols["math/bits"] = map[string]reflect.Value{ // function, constant and variable definitions "LeadingZeros": reflect.ValueOf(bits.LeadingZeros), "LeadingZeros16": reflect.ValueOf(bits.LeadingZeros16), diff --git a/stdlib/go1_11_math_cmplx.go b/stdlib/go1_11_math_cmplx.go index 9798d08f..7473213f 100644 --- a/stdlib/go1_11_math_cmplx.go +++ b/stdlib/go1_11_math_cmplx.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["math/cmplx"] = map[string]reflect.Value{ + Symbols["math/cmplx"] = map[string]reflect.Value{ // function, constant and variable definitions "Abs": reflect.ValueOf(cmplx.Abs), "Acos": reflect.ValueOf(cmplx.Acos), diff --git a/stdlib/go1_11_math_rand.go b/stdlib/go1_11_math_rand.go index 7eca1785..63c3713e 100644 --- a/stdlib/go1_11_math_rand.go +++ b/stdlib/go1_11_math_rand.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["math/rand"] = map[string]reflect.Value{ + Symbols["math/rand"] = map[string]reflect.Value{ // function, constant and variable definitions "ExpFloat64": reflect.ValueOf(rand.ExpFloat64), "Float32": reflect.ValueOf(rand.Float32), diff --git a/stdlib/go1_11_mime.go b/stdlib/go1_11_mime.go index 2888c19a..d5d34575 100644 --- a/stdlib/go1_11_mime.go +++ b/stdlib/go1_11_mime.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["mime"] = map[string]reflect.Value{ + Symbols["mime"] = map[string]reflect.Value{ // function, constant and variable definitions "AddExtensionType": reflect.ValueOf(mime.AddExtensionType), "BEncoding": reflect.ValueOf(mime.BEncoding), diff --git a/stdlib/go1_11_mime_multipart.go b/stdlib/go1_11_mime_multipart.go index c96bf14c..4ce4ac52 100644 --- a/stdlib/go1_11_mime_multipart.go +++ b/stdlib/go1_11_mime_multipart.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["mime/multipart"] = map[string]reflect.Value{ + Symbols["mime/multipart"] = map[string]reflect.Value{ // function, constant and variable definitions "ErrMessageTooLarge": reflect.ValueOf(&multipart.ErrMessageTooLarge).Elem(), "NewReader": reflect.ValueOf(multipart.NewReader), diff --git a/stdlib/go1_11_mime_quotedprintable.go b/stdlib/go1_11_mime_quotedprintable.go index 6a1ab758..dc5a0711 100644 --- a/stdlib/go1_11_mime_quotedprintable.go +++ b/stdlib/go1_11_mime_quotedprintable.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["mime/quotedprintable"] = map[string]reflect.Value{ + Symbols["mime/quotedprintable"] = map[string]reflect.Value{ // function, constant and variable definitions "NewReader": reflect.ValueOf(quotedprintable.NewReader), "NewWriter": reflect.ValueOf(quotedprintable.NewWriter), diff --git a/stdlib/go1_11_net.go b/stdlib/go1_11_net.go index ca31cf8d..f138a8ae 100644 --- a/stdlib/go1_11_net.go +++ b/stdlib/go1_11_net.go @@ -11,7 +11,7 @@ import ( ) func init() { - Value["net"] = map[string]reflect.Value{ + Symbols["net"] = map[string]reflect.Value{ // function, constant and variable definitions "CIDRMask": reflect.ValueOf(net.CIDRMask), "DefaultResolver": reflect.ValueOf(&net.DefaultResolver).Elem(), diff --git a/stdlib/go1_11_net_http.go b/stdlib/go1_11_net_http.go index a0a81f69..32a56411 100644 --- a/stdlib/go1_11_net_http.go +++ b/stdlib/go1_11_net_http.go @@ -14,7 +14,7 @@ import ( ) func init() { - Value["net/http"] = map[string]reflect.Value{ + Symbols["net/http"] = map[string]reflect.Value{ // function, constant and variable definitions "CanonicalHeaderKey": reflect.ValueOf(http.CanonicalHeaderKey), "DefaultClient": reflect.ValueOf(&http.DefaultClient).Elem(), diff --git a/stdlib/go1_11_net_http_cgi.go b/stdlib/go1_11_net_http_cgi.go index 1f64bd5c..deb4b973 100644 --- a/stdlib/go1_11_net_http_cgi.go +++ b/stdlib/go1_11_net_http_cgi.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["net/http/cgi"] = map[string]reflect.Value{ + Symbols["net/http/cgi"] = map[string]reflect.Value{ // function, constant and variable definitions "Request": reflect.ValueOf(cgi.Request), "RequestFromMap": reflect.ValueOf(cgi.RequestFromMap), diff --git a/stdlib/go1_11_net_http_cookiejar.go b/stdlib/go1_11_net_http_cookiejar.go index 801e316e..562fef68 100644 --- a/stdlib/go1_11_net_http_cookiejar.go +++ b/stdlib/go1_11_net_http_cookiejar.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["net/http/cookiejar"] = map[string]reflect.Value{ + Symbols["net/http/cookiejar"] = map[string]reflect.Value{ // function, constant and variable definitions "New": reflect.ValueOf(cookiejar.New), diff --git a/stdlib/go1_11_net_http_fcgi.go b/stdlib/go1_11_net_http_fcgi.go index c3005573..e07f63d5 100644 --- a/stdlib/go1_11_net_http_fcgi.go +++ b/stdlib/go1_11_net_http_fcgi.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["net/http/fcgi"] = map[string]reflect.Value{ + Symbols["net/http/fcgi"] = map[string]reflect.Value{ // function, constant and variable definitions "ErrConnClosed": reflect.ValueOf(&fcgi.ErrConnClosed).Elem(), "ErrRequestAborted": reflect.ValueOf(&fcgi.ErrRequestAborted).Elem(), diff --git a/stdlib/go1_11_net_http_httptest.go b/stdlib/go1_11_net_http_httptest.go index a64e24b5..db690f00 100644 --- a/stdlib/go1_11_net_http_httptest.go +++ b/stdlib/go1_11_net_http_httptest.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["net/http/httptest"] = map[string]reflect.Value{ + Symbols["net/http/httptest"] = map[string]reflect.Value{ // function, constant and variable definitions "DefaultRemoteAddr": reflect.ValueOf(httptest.DefaultRemoteAddr), "NewRecorder": reflect.ValueOf(httptest.NewRecorder), diff --git a/stdlib/go1_11_net_http_httptrace.go b/stdlib/go1_11_net_http_httptrace.go index c143afcf..85eca938 100644 --- a/stdlib/go1_11_net_http_httptrace.go +++ b/stdlib/go1_11_net_http_httptrace.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["net/http/httptrace"] = map[string]reflect.Value{ + Symbols["net/http/httptrace"] = map[string]reflect.Value{ // function, constant and variable definitions "ContextClientTrace": reflect.ValueOf(httptrace.ContextClientTrace), "WithClientTrace": reflect.ValueOf(httptrace.WithClientTrace), diff --git a/stdlib/go1_11_net_http_httputil.go b/stdlib/go1_11_net_http_httputil.go index b40b106f..4a62946d 100644 --- a/stdlib/go1_11_net_http_httputil.go +++ b/stdlib/go1_11_net_http_httputil.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["net/http/httputil"] = map[string]reflect.Value{ + Symbols["net/http/httputil"] = map[string]reflect.Value{ // function, constant and variable definitions "DumpRequest": reflect.ValueOf(httputil.DumpRequest), "DumpRequestOut": reflect.ValueOf(httputil.DumpRequestOut), diff --git a/stdlib/go1_11_net_mail.go b/stdlib/go1_11_net_mail.go index db23adf1..7a33d0e2 100644 --- a/stdlib/go1_11_net_mail.go +++ b/stdlib/go1_11_net_mail.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["net/mail"] = map[string]reflect.Value{ + Symbols["net/mail"] = map[string]reflect.Value{ // function, constant and variable definitions "ErrHeaderNotPresent": reflect.ValueOf(&mail.ErrHeaderNotPresent).Elem(), "ParseAddress": reflect.ValueOf(mail.ParseAddress), diff --git a/stdlib/go1_11_net_rpc.go b/stdlib/go1_11_net_rpc.go index 527cc0e2..ae95d7a2 100644 --- a/stdlib/go1_11_net_rpc.go +++ b/stdlib/go1_11_net_rpc.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["net/rpc"] = map[string]reflect.Value{ + Symbols["net/rpc"] = map[string]reflect.Value{ // function, constant and variable definitions "Accept": reflect.ValueOf(rpc.Accept), "DefaultDebugPath": reflect.ValueOf(rpc.DefaultDebugPath), diff --git a/stdlib/go1_11_net_rpc_jsonrpc.go b/stdlib/go1_11_net_rpc_jsonrpc.go index c46cfb3f..7cd05a96 100644 --- a/stdlib/go1_11_net_rpc_jsonrpc.go +++ b/stdlib/go1_11_net_rpc_jsonrpc.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["net/rpc/jsonrpc"] = map[string]reflect.Value{ + Symbols["net/rpc/jsonrpc"] = map[string]reflect.Value{ // function, constant and variable definitions "Dial": reflect.ValueOf(jsonrpc.Dial), "NewClient": reflect.ValueOf(jsonrpc.NewClient), diff --git a/stdlib/go1_11_net_smtp.go b/stdlib/go1_11_net_smtp.go index 3223bd30..b30ecf93 100644 --- a/stdlib/go1_11_net_smtp.go +++ b/stdlib/go1_11_net_smtp.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["net/smtp"] = map[string]reflect.Value{ + Symbols["net/smtp"] = map[string]reflect.Value{ // function, constant and variable definitions "CRAMMD5Auth": reflect.ValueOf(smtp.CRAMMD5Auth), "Dial": reflect.ValueOf(smtp.Dial), diff --git a/stdlib/go1_11_net_textproto.go b/stdlib/go1_11_net_textproto.go index 62df3b76..ffbe5f94 100644 --- a/stdlib/go1_11_net_textproto.go +++ b/stdlib/go1_11_net_textproto.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["net/textproto"] = map[string]reflect.Value{ + Symbols["net/textproto"] = map[string]reflect.Value{ // function, constant and variable definitions "CanonicalMIMEHeaderKey": reflect.ValueOf(textproto.CanonicalMIMEHeaderKey), "Dial": reflect.ValueOf(textproto.Dial), diff --git a/stdlib/go1_11_net_url.go b/stdlib/go1_11_net_url.go index ddc32e4b..e91ab857 100644 --- a/stdlib/go1_11_net_url.go +++ b/stdlib/go1_11_net_url.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["net/url"] = map[string]reflect.Value{ + Symbols["net/url"] = map[string]reflect.Value{ // function, constant and variable definitions "Parse": reflect.ValueOf(url.Parse), "ParseQuery": reflect.ValueOf(url.ParseQuery), diff --git a/stdlib/go1_11_os.go b/stdlib/go1_11_os.go index 1bd2214e..e74e4797 100644 --- a/stdlib/go1_11_os.go +++ b/stdlib/go1_11_os.go @@ -11,7 +11,7 @@ import ( ) func init() { - Value["os"] = map[string]reflect.Value{ + Symbols["os"] = map[string]reflect.Value{ // function, constant and variable definitions "Args": reflect.ValueOf(&os.Args).Elem(), "Chdir": reflect.ValueOf(os.Chdir), diff --git a/stdlib/go1_11_os_exec.go b/stdlib/go1_11_os_exec.go index 86b1a2d0..45ca53d3 100644 --- a/stdlib/go1_11_os_exec.go +++ b/stdlib/go1_11_os_exec.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["os/exec"] = map[string]reflect.Value{ + Symbols["os/exec"] = map[string]reflect.Value{ // function, constant and variable definitions "Command": reflect.ValueOf(exec.Command), "CommandContext": reflect.ValueOf(exec.CommandContext), diff --git a/stdlib/go1_11_os_signal.go b/stdlib/go1_11_os_signal.go index e350f990..c3375ebd 100644 --- a/stdlib/go1_11_os_signal.go +++ b/stdlib/go1_11_os_signal.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["os/signal"] = map[string]reflect.Value{ + Symbols["os/signal"] = map[string]reflect.Value{ // function, constant and variable definitions "Ignore": reflect.ValueOf(signal.Ignore), "Ignored": reflect.ValueOf(signal.Ignored), diff --git a/stdlib/go1_11_os_user.go b/stdlib/go1_11_os_user.go index 8dc3b82b..8332c434 100644 --- a/stdlib/go1_11_os_user.go +++ b/stdlib/go1_11_os_user.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["os/user"] = map[string]reflect.Value{ + Symbols["os/user"] = map[string]reflect.Value{ // function, constant and variable definitions "Current": reflect.ValueOf(user.Current), "Lookup": reflect.ValueOf(user.Lookup), diff --git a/stdlib/go1_11_path.go b/stdlib/go1_11_path.go index 039072c3..f4b852ee 100644 --- a/stdlib/go1_11_path.go +++ b/stdlib/go1_11_path.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["path"] = map[string]reflect.Value{ + Symbols["path"] = map[string]reflect.Value{ // function, constant and variable definitions "Base": reflect.ValueOf(path.Base), "Clean": reflect.ValueOf(path.Clean), diff --git a/stdlib/go1_11_path_filepath.go b/stdlib/go1_11_path_filepath.go index 88407f6e..1afff933 100644 --- a/stdlib/go1_11_path_filepath.go +++ b/stdlib/go1_11_path_filepath.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["path/filepath"] = map[string]reflect.Value{ + Symbols["path/filepath"] = map[string]reflect.Value{ // function, constant and variable definitions "Abs": reflect.ValueOf(filepath.Abs), "Base": reflect.ValueOf(filepath.Base), diff --git a/stdlib/go1_11_reflect.go b/stdlib/go1_11_reflect.go index 4bb2d8bc..2b5a954d 100644 --- a/stdlib/go1_11_reflect.go +++ b/stdlib/go1_11_reflect.go @@ -9,7 +9,7 @@ import ( ) func init() { - Value["reflect"] = map[string]reflect.Value{ + Symbols["reflect"] = map[string]reflect.Value{ // function, constant and variable definitions "Append": reflect.ValueOf(reflect.Append), "AppendSlice": reflect.ValueOf(reflect.AppendSlice), diff --git a/stdlib/go1_11_regexp.go b/stdlib/go1_11_regexp.go index cfd97921..8f93480e 100644 --- a/stdlib/go1_11_regexp.go +++ b/stdlib/go1_11_regexp.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["regexp"] = map[string]reflect.Value{ + Symbols["regexp"] = map[string]reflect.Value{ // function, constant and variable definitions "Compile": reflect.ValueOf(regexp.Compile), "CompilePOSIX": reflect.ValueOf(regexp.CompilePOSIX), diff --git a/stdlib/go1_11_regexp_syntax.go b/stdlib/go1_11_regexp_syntax.go index 95f6e8a2..450a451c 100644 --- a/stdlib/go1_11_regexp_syntax.go +++ b/stdlib/go1_11_regexp_syntax.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["regexp/syntax"] = map[string]reflect.Value{ + Symbols["regexp/syntax"] = map[string]reflect.Value{ // function, constant and variable definitions "ClassNL": reflect.ValueOf(syntax.ClassNL), "Compile": reflect.ValueOf(syntax.Compile), diff --git a/stdlib/go1_11_runtime.go b/stdlib/go1_11_runtime.go index c1e17896..937994d4 100644 --- a/stdlib/go1_11_runtime.go +++ b/stdlib/go1_11_runtime.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["runtime"] = map[string]reflect.Value{ + Symbols["runtime"] = map[string]reflect.Value{ // function, constant and variable definitions "BlockProfile": reflect.ValueOf(runtime.BlockProfile), "Breakpoint": reflect.ValueOf(runtime.Breakpoint), diff --git a/stdlib/go1_11_runtime_debug.go b/stdlib/go1_11_runtime_debug.go index 9fbc1f9e..ee13b129 100644 --- a/stdlib/go1_11_runtime_debug.go +++ b/stdlib/go1_11_runtime_debug.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["runtime/debug"] = map[string]reflect.Value{ + Symbols["runtime/debug"] = map[string]reflect.Value{ // function, constant and variable definitions "FreeOSMemory": reflect.ValueOf(debug.FreeOSMemory), "PrintStack": reflect.ValueOf(debug.PrintStack), diff --git a/stdlib/go1_11_sort.go b/stdlib/go1_11_sort.go index 9fca684c..45d7543a 100644 --- a/stdlib/go1_11_sort.go +++ b/stdlib/go1_11_sort.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["sort"] = map[string]reflect.Value{ + Symbols["sort"] = map[string]reflect.Value{ // function, constant and variable definitions "Float64s": reflect.ValueOf(sort.Float64s), "Float64sAreSorted": reflect.ValueOf(sort.Float64sAreSorted), diff --git a/stdlib/go1_11_strconv.go b/stdlib/go1_11_strconv.go index b7bdc0a9..0b7d400a 100644 --- a/stdlib/go1_11_strconv.go +++ b/stdlib/go1_11_strconv.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["strconv"] = map[string]reflect.Value{ + Symbols["strconv"] = map[string]reflect.Value{ // function, constant and variable definitions "AppendBool": reflect.ValueOf(strconv.AppendBool), "AppendFloat": reflect.ValueOf(strconv.AppendFloat), diff --git a/stdlib/go1_11_strings.go b/stdlib/go1_11_strings.go index 50be6c63..1618c1d5 100644 --- a/stdlib/go1_11_strings.go +++ b/stdlib/go1_11_strings.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["strings"] = map[string]reflect.Value{ + Symbols["strings"] = map[string]reflect.Value{ // function, constant and variable definitions "Compare": reflect.ValueOf(strings.Compare), "Contains": reflect.ValueOf(strings.Contains), diff --git a/stdlib/go1_11_sync.go b/stdlib/go1_11_sync.go index bd7e3597..9cee2757 100644 --- a/stdlib/go1_11_sync.go +++ b/stdlib/go1_11_sync.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["sync"] = map[string]reflect.Value{ + Symbols["sync"] = map[string]reflect.Value{ // function, constant and variable definitions "NewCond": reflect.ValueOf(sync.NewCond), diff --git a/stdlib/go1_11_sync_atomic.go b/stdlib/go1_11_sync_atomic.go index fdd08e08..b80e55ed 100644 --- a/stdlib/go1_11_sync_atomic.go +++ b/stdlib/go1_11_sync_atomic.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["sync/atomic"] = map[string]reflect.Value{ + Symbols["sync/atomic"] = map[string]reflect.Value{ // function, constant and variable definitions "AddInt32": reflect.ValueOf(atomic.AddInt32), "AddInt64": reflect.ValueOf(atomic.AddInt64), diff --git a/stdlib/go1_11_text_scanner.go b/stdlib/go1_11_text_scanner.go index f58b18b9..9291c77c 100644 --- a/stdlib/go1_11_text_scanner.go +++ b/stdlib/go1_11_text_scanner.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["text/scanner"] = map[string]reflect.Value{ + Symbols["text/scanner"] = map[string]reflect.Value{ // function, constant and variable definitions "Char": reflect.ValueOf(scanner.Char), "Comment": reflect.ValueOf(scanner.Comment), diff --git a/stdlib/go1_11_text_tabwriter.go b/stdlib/go1_11_text_tabwriter.go index 3190056d..5d347a9d 100644 --- a/stdlib/go1_11_text_tabwriter.go +++ b/stdlib/go1_11_text_tabwriter.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["text/tabwriter"] = map[string]reflect.Value{ + Symbols["text/tabwriter"] = map[string]reflect.Value{ // function, constant and variable definitions "AlignRight": reflect.ValueOf(tabwriter.AlignRight), "Debug": reflect.ValueOf(tabwriter.Debug), diff --git a/stdlib/go1_11_text_template.go b/stdlib/go1_11_text_template.go index ab8d2e00..f54398a8 100644 --- a/stdlib/go1_11_text_template.go +++ b/stdlib/go1_11_text_template.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["text/template"] = map[string]reflect.Value{ + Symbols["text/template"] = map[string]reflect.Value{ // function, constant and variable definitions "HTMLEscape": reflect.ValueOf(template.HTMLEscape), "HTMLEscapeString": reflect.ValueOf(template.HTMLEscapeString), diff --git a/stdlib/go1_11_text_template_parse.go b/stdlib/go1_11_text_template_parse.go index 4128f101..71cb40ff 100644 --- a/stdlib/go1_11_text_template_parse.go +++ b/stdlib/go1_11_text_template_parse.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["text/template/parse"] = map[string]reflect.Value{ + Symbols["text/template/parse"] = map[string]reflect.Value{ // function, constant and variable definitions "IsEmptyTree": reflect.ValueOf(parse.IsEmptyTree), "New": reflect.ValueOf(parse.New), diff --git a/stdlib/go1_11_time.go b/stdlib/go1_11_time.go index f38b7ec4..c131cc9d 100644 --- a/stdlib/go1_11_time.go +++ b/stdlib/go1_11_time.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["time"] = map[string]reflect.Value{ + Symbols["time"] = map[string]reflect.Value{ // function, constant and variable definitions "ANSIC": reflect.ValueOf(time.ANSIC), "After": reflect.ValueOf(time.After), diff --git a/stdlib/go1_11_unicode.go b/stdlib/go1_11_unicode.go index ab40993e..8b738c0f 100644 --- a/stdlib/go1_11_unicode.go +++ b/stdlib/go1_11_unicode.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["unicode"] = map[string]reflect.Value{ + Symbols["unicode"] = map[string]reflect.Value{ // function, constant and variable definitions "ASCII_Hex_Digit": reflect.ValueOf(&unicode.ASCII_Hex_Digit).Elem(), "Adlam": reflect.ValueOf(&unicode.Adlam).Elem(), diff --git a/stdlib/go1_11_unicode_utf16.go b/stdlib/go1_11_unicode_utf16.go index da818ece..f46bc00b 100644 --- a/stdlib/go1_11_unicode_utf16.go +++ b/stdlib/go1_11_unicode_utf16.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["unicode/utf16"] = map[string]reflect.Value{ + Symbols["unicode/utf16"] = map[string]reflect.Value{ // function, constant and variable definitions "Decode": reflect.ValueOf(utf16.Decode), "DecodeRune": reflect.ValueOf(utf16.DecodeRune), diff --git a/stdlib/go1_11_unicode_utf8.go b/stdlib/go1_11_unicode_utf8.go index 29f0a0d6..4c0537a9 100644 --- a/stdlib/go1_11_unicode_utf8.go +++ b/stdlib/go1_11_unicode_utf8.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["unicode/utf8"] = map[string]reflect.Value{ + Symbols["unicode/utf8"] = map[string]reflect.Value{ // function, constant and variable definitions "DecodeLastRune": reflect.ValueOf(utf8.DecodeLastRune), "DecodeLastRuneInString": reflect.ValueOf(utf8.DecodeLastRuneInString), diff --git a/stdlib/go1_12_archive_tar.go b/stdlib/go1_12_archive_tar.go index 4f1783ee..ecc14329 100644 --- a/stdlib/go1_12_archive_tar.go +++ b/stdlib/go1_12_archive_tar.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["archive/tar"] = map[string]reflect.Value{ + Symbols["archive/tar"] = map[string]reflect.Value{ // function, constant and variable definitions "ErrFieldTooLong": reflect.ValueOf(&tar.ErrFieldTooLong).Elem(), "ErrHeader": reflect.ValueOf(&tar.ErrHeader).Elem(), diff --git a/stdlib/go1_12_archive_zip.go b/stdlib/go1_12_archive_zip.go index 0599eadd..d985e0ec 100644 --- a/stdlib/go1_12_archive_zip.go +++ b/stdlib/go1_12_archive_zip.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["archive/zip"] = map[string]reflect.Value{ + Symbols["archive/zip"] = map[string]reflect.Value{ // function, constant and variable definitions "Deflate": reflect.ValueOf(zip.Deflate), "ErrAlgorithm": reflect.ValueOf(&zip.ErrAlgorithm).Elem(), diff --git a/stdlib/go1_12_bufio.go b/stdlib/go1_12_bufio.go index aa2f56e3..896d7283 100644 --- a/stdlib/go1_12_bufio.go +++ b/stdlib/go1_12_bufio.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["bufio"] = map[string]reflect.Value{ + Symbols["bufio"] = map[string]reflect.Value{ // function, constant and variable definitions "ErrAdvanceTooFar": reflect.ValueOf(&bufio.ErrAdvanceTooFar).Elem(), "ErrBufferFull": reflect.ValueOf(&bufio.ErrBufferFull).Elem(), diff --git a/stdlib/go1_12_bytes.go b/stdlib/go1_12_bytes.go index 664b86ee..7a55e352 100644 --- a/stdlib/go1_12_bytes.go +++ b/stdlib/go1_12_bytes.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["bytes"] = map[string]reflect.Value{ + Symbols["bytes"] = map[string]reflect.Value{ // function, constant and variable definitions "Compare": reflect.ValueOf(bytes.Compare), "Contains": reflect.ValueOf(bytes.Contains), diff --git a/stdlib/go1_12_compress_bzip2.go b/stdlib/go1_12_compress_bzip2.go index 229ca0ba..d0b1d3e7 100644 --- a/stdlib/go1_12_compress_bzip2.go +++ b/stdlib/go1_12_compress_bzip2.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["compress/bzip2"] = map[string]reflect.Value{ + Symbols["compress/bzip2"] = map[string]reflect.Value{ // function, constant and variable definitions "NewReader": reflect.ValueOf(bzip2.NewReader), diff --git a/stdlib/go1_12_compress_flate.go b/stdlib/go1_12_compress_flate.go index 4e26b5d2..8f024e06 100644 --- a/stdlib/go1_12_compress_flate.go +++ b/stdlib/go1_12_compress_flate.go @@ -11,7 +11,7 @@ import ( ) func init() { - Value["compress/flate"] = map[string]reflect.Value{ + Symbols["compress/flate"] = map[string]reflect.Value{ // function, constant and variable definitions "BestCompression": reflect.ValueOf(flate.BestCompression), "BestSpeed": reflect.ValueOf(flate.BestSpeed), diff --git a/stdlib/go1_12_compress_gzip.go b/stdlib/go1_12_compress_gzip.go index f6e9ce1c..ce6f043c 100644 --- a/stdlib/go1_12_compress_gzip.go +++ b/stdlib/go1_12_compress_gzip.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["compress/gzip"] = map[string]reflect.Value{ + Symbols["compress/gzip"] = map[string]reflect.Value{ // function, constant and variable definitions "BestCompression": reflect.ValueOf(gzip.BestCompression), "BestSpeed": reflect.ValueOf(gzip.BestSpeed), diff --git a/stdlib/go1_12_compress_lzw.go b/stdlib/go1_12_compress_lzw.go index 8d777e2c..7075dad6 100644 --- a/stdlib/go1_12_compress_lzw.go +++ b/stdlib/go1_12_compress_lzw.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["compress/lzw"] = map[string]reflect.Value{ + Symbols["compress/lzw"] = map[string]reflect.Value{ // function, constant and variable definitions "LSB": reflect.ValueOf(lzw.LSB), "MSB": reflect.ValueOf(lzw.MSB), diff --git a/stdlib/go1_12_compress_zlib.go b/stdlib/go1_12_compress_zlib.go index 29db3102..c00ecd79 100644 --- a/stdlib/go1_12_compress_zlib.go +++ b/stdlib/go1_12_compress_zlib.go @@ -11,7 +11,7 @@ import ( ) func init() { - Value["compress/zlib"] = map[string]reflect.Value{ + Symbols["compress/zlib"] = map[string]reflect.Value{ // function, constant and variable definitions "BestCompression": reflect.ValueOf(zlib.BestCompression), "BestSpeed": reflect.ValueOf(zlib.BestSpeed), diff --git a/stdlib/go1_12_container_heap.go b/stdlib/go1_12_container_heap.go index 69431e57..ed02bb50 100644 --- a/stdlib/go1_12_container_heap.go +++ b/stdlib/go1_12_container_heap.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["container/heap"] = map[string]reflect.Value{ + Symbols["container/heap"] = map[string]reflect.Value{ // function, constant and variable definitions "Fix": reflect.ValueOf(heap.Fix), "Init": reflect.ValueOf(heap.Init), diff --git a/stdlib/go1_12_container_list.go b/stdlib/go1_12_container_list.go index d2699783..43b26984 100644 --- a/stdlib/go1_12_container_list.go +++ b/stdlib/go1_12_container_list.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["container/list"] = map[string]reflect.Value{ + Symbols["container/list"] = map[string]reflect.Value{ // function, constant and variable definitions "New": reflect.ValueOf(list.New), diff --git a/stdlib/go1_12_container_ring.go b/stdlib/go1_12_container_ring.go index e7f60154..ee377a72 100644 --- a/stdlib/go1_12_container_ring.go +++ b/stdlib/go1_12_container_ring.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["container/ring"] = map[string]reflect.Value{ + Symbols["container/ring"] = map[string]reflect.Value{ // function, constant and variable definitions "New": reflect.ValueOf(ring.New), diff --git a/stdlib/go1_12_context.go b/stdlib/go1_12_context.go index 011de5a3..83bfd6ef 100644 --- a/stdlib/go1_12_context.go +++ b/stdlib/go1_12_context.go @@ -11,7 +11,7 @@ import ( ) func init() { - Value["context"] = map[string]reflect.Value{ + Symbols["context"] = map[string]reflect.Value{ // function, constant and variable definitions "Background": reflect.ValueOf(context.Background), "Canceled": reflect.ValueOf(&context.Canceled).Elem(), diff --git a/stdlib/go1_12_crypto.go b/stdlib/go1_12_crypto.go index acfa7f70..c0975529 100644 --- a/stdlib/go1_12_crypto.go +++ b/stdlib/go1_12_crypto.go @@ -11,7 +11,7 @@ import ( ) func init() { - Value["crypto"] = map[string]reflect.Value{ + Symbols["crypto"] = map[string]reflect.Value{ // function, constant and variable definitions "BLAKE2b_256": reflect.ValueOf(crypto.BLAKE2b_256), "BLAKE2b_384": reflect.ValueOf(crypto.BLAKE2b_384), diff --git a/stdlib/go1_12_crypto_aes.go b/stdlib/go1_12_crypto_aes.go index 42e6b10c..1e2118c6 100644 --- a/stdlib/go1_12_crypto_aes.go +++ b/stdlib/go1_12_crypto_aes.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["crypto/aes"] = map[string]reflect.Value{ + Symbols["crypto/aes"] = map[string]reflect.Value{ // function, constant and variable definitions "BlockSize": reflect.ValueOf(aes.BlockSize), "NewCipher": reflect.ValueOf(aes.NewCipher), diff --git a/stdlib/go1_12_crypto_cipher.go b/stdlib/go1_12_crypto_cipher.go index 34f169f6..63d8131d 100644 --- a/stdlib/go1_12_crypto_cipher.go +++ b/stdlib/go1_12_crypto_cipher.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["crypto/cipher"] = map[string]reflect.Value{ + Symbols["crypto/cipher"] = map[string]reflect.Value{ // function, constant and variable definitions "NewCBCDecrypter": reflect.ValueOf(cipher.NewCBCDecrypter), "NewCBCEncrypter": reflect.ValueOf(cipher.NewCBCEncrypter), diff --git a/stdlib/go1_12_crypto_des.go b/stdlib/go1_12_crypto_des.go index 456d3a26..0f6b8a84 100644 --- a/stdlib/go1_12_crypto_des.go +++ b/stdlib/go1_12_crypto_des.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["crypto/des"] = map[string]reflect.Value{ + Symbols["crypto/des"] = map[string]reflect.Value{ // function, constant and variable definitions "BlockSize": reflect.ValueOf(des.BlockSize), "NewCipher": reflect.ValueOf(des.NewCipher), diff --git a/stdlib/go1_12_crypto_dsa.go b/stdlib/go1_12_crypto_dsa.go index a56a5b82..394bc666 100644 --- a/stdlib/go1_12_crypto_dsa.go +++ b/stdlib/go1_12_crypto_dsa.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["crypto/dsa"] = map[string]reflect.Value{ + Symbols["crypto/dsa"] = map[string]reflect.Value{ // function, constant and variable definitions "ErrInvalidPublicKey": reflect.ValueOf(&dsa.ErrInvalidPublicKey).Elem(), "GenerateKey": reflect.ValueOf(dsa.GenerateKey), diff --git a/stdlib/go1_12_crypto_ecdsa.go b/stdlib/go1_12_crypto_ecdsa.go index 33b0c77c..ef133e44 100644 --- a/stdlib/go1_12_crypto_ecdsa.go +++ b/stdlib/go1_12_crypto_ecdsa.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["crypto/ecdsa"] = map[string]reflect.Value{ + Symbols["crypto/ecdsa"] = map[string]reflect.Value{ // function, constant and variable definitions "GenerateKey": reflect.ValueOf(ecdsa.GenerateKey), "Sign": reflect.ValueOf(ecdsa.Sign), diff --git a/stdlib/go1_12_crypto_elliptic.go b/stdlib/go1_12_crypto_elliptic.go index 7aa9a430..a60a9905 100644 --- a/stdlib/go1_12_crypto_elliptic.go +++ b/stdlib/go1_12_crypto_elliptic.go @@ -11,7 +11,7 @@ import ( ) func init() { - Value["crypto/elliptic"] = map[string]reflect.Value{ + Symbols["crypto/elliptic"] = map[string]reflect.Value{ // function, constant and variable definitions "GenerateKey": reflect.ValueOf(elliptic.GenerateKey), "Marshal": reflect.ValueOf(elliptic.Marshal), diff --git a/stdlib/go1_12_crypto_hmac.go b/stdlib/go1_12_crypto_hmac.go index f41611b5..8fc99e0d 100644 --- a/stdlib/go1_12_crypto_hmac.go +++ b/stdlib/go1_12_crypto_hmac.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["crypto/hmac"] = map[string]reflect.Value{ + Symbols["crypto/hmac"] = map[string]reflect.Value{ // function, constant and variable definitions "Equal": reflect.ValueOf(hmac.Equal), "New": reflect.ValueOf(hmac.New), diff --git a/stdlib/go1_12_crypto_md5.go b/stdlib/go1_12_crypto_md5.go index 8fbae4c1..9a84fc40 100644 --- a/stdlib/go1_12_crypto_md5.go +++ b/stdlib/go1_12_crypto_md5.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["crypto/md5"] = map[string]reflect.Value{ + Symbols["crypto/md5"] = map[string]reflect.Value{ // function, constant and variable definitions "BlockSize": reflect.ValueOf(md5.BlockSize), "New": reflect.ValueOf(md5.New), diff --git a/stdlib/go1_12_crypto_rand.go b/stdlib/go1_12_crypto_rand.go index d1555c80..2d8ab74a 100644 --- a/stdlib/go1_12_crypto_rand.go +++ b/stdlib/go1_12_crypto_rand.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["crypto/rand"] = map[string]reflect.Value{ + Symbols["crypto/rand"] = map[string]reflect.Value{ // function, constant and variable definitions "Int": reflect.ValueOf(rand.Int), "Prime": reflect.ValueOf(rand.Prime), diff --git a/stdlib/go1_12_crypto_rc4.go b/stdlib/go1_12_crypto_rc4.go index b9ee5d2c..4e07b9bb 100644 --- a/stdlib/go1_12_crypto_rc4.go +++ b/stdlib/go1_12_crypto_rc4.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["crypto/rc4"] = map[string]reflect.Value{ + Symbols["crypto/rc4"] = map[string]reflect.Value{ // function, constant and variable definitions "NewCipher": reflect.ValueOf(rc4.NewCipher), diff --git a/stdlib/go1_12_crypto_rsa.go b/stdlib/go1_12_crypto_rsa.go index 861a07e3..6f01e24a 100644 --- a/stdlib/go1_12_crypto_rsa.go +++ b/stdlib/go1_12_crypto_rsa.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["crypto/rsa"] = map[string]reflect.Value{ + Symbols["crypto/rsa"] = map[string]reflect.Value{ // function, constant and variable definitions "DecryptOAEP": reflect.ValueOf(rsa.DecryptOAEP), "DecryptPKCS1v15": reflect.ValueOf(rsa.DecryptPKCS1v15), diff --git a/stdlib/go1_12_crypto_sha1.go b/stdlib/go1_12_crypto_sha1.go index fba1fd10..b1453a9d 100644 --- a/stdlib/go1_12_crypto_sha1.go +++ b/stdlib/go1_12_crypto_sha1.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["crypto/sha1"] = map[string]reflect.Value{ + Symbols["crypto/sha1"] = map[string]reflect.Value{ // function, constant and variable definitions "BlockSize": reflect.ValueOf(sha1.BlockSize), "New": reflect.ValueOf(sha1.New), diff --git a/stdlib/go1_12_crypto_sha256.go b/stdlib/go1_12_crypto_sha256.go index 361a431a..c02e8980 100644 --- a/stdlib/go1_12_crypto_sha256.go +++ b/stdlib/go1_12_crypto_sha256.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["crypto/sha256"] = map[string]reflect.Value{ + Symbols["crypto/sha256"] = map[string]reflect.Value{ // function, constant and variable definitions "BlockSize": reflect.ValueOf(sha256.BlockSize), "New": reflect.ValueOf(sha256.New), diff --git a/stdlib/go1_12_crypto_sha512.go b/stdlib/go1_12_crypto_sha512.go index e86fe885..524e1d90 100644 --- a/stdlib/go1_12_crypto_sha512.go +++ b/stdlib/go1_12_crypto_sha512.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["crypto/sha512"] = map[string]reflect.Value{ + Symbols["crypto/sha512"] = map[string]reflect.Value{ // function, constant and variable definitions "BlockSize": reflect.ValueOf(sha512.BlockSize), "New": reflect.ValueOf(sha512.New), diff --git a/stdlib/go1_12_crypto_subtle.go b/stdlib/go1_12_crypto_subtle.go index 2f01de1b..435e8094 100644 --- a/stdlib/go1_12_crypto_subtle.go +++ b/stdlib/go1_12_crypto_subtle.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["crypto/subtle"] = map[string]reflect.Value{ + Symbols["crypto/subtle"] = map[string]reflect.Value{ // function, constant and variable definitions "ConstantTimeByteEq": reflect.ValueOf(subtle.ConstantTimeByteEq), "ConstantTimeCompare": reflect.ValueOf(subtle.ConstantTimeCompare), diff --git a/stdlib/go1_12_crypto_tls.go b/stdlib/go1_12_crypto_tls.go index d2fb13b5..3ee3f2d6 100644 --- a/stdlib/go1_12_crypto_tls.go +++ b/stdlib/go1_12_crypto_tls.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["crypto/tls"] = map[string]reflect.Value{ + Symbols["crypto/tls"] = map[string]reflect.Value{ // function, constant and variable definitions "Client": reflect.ValueOf(tls.Client), "CurveP256": reflect.ValueOf(tls.CurveP256), diff --git a/stdlib/go1_12_crypto_x509.go b/stdlib/go1_12_crypto_x509.go index ff3560db..882a86e4 100644 --- a/stdlib/go1_12_crypto_x509.go +++ b/stdlib/go1_12_crypto_x509.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["crypto/x509"] = map[string]reflect.Value{ + Symbols["crypto/x509"] = map[string]reflect.Value{ // function, constant and variable definitions "CANotAuthorizedForExtKeyUsage": reflect.ValueOf(x509.CANotAuthorizedForExtKeyUsage), "CANotAuthorizedForThisName": reflect.ValueOf(x509.CANotAuthorizedForThisName), diff --git a/stdlib/go1_12_crypto_x509_pkix.go b/stdlib/go1_12_crypto_x509_pkix.go index dd77f6ea..412b978f 100644 --- a/stdlib/go1_12_crypto_x509_pkix.go +++ b/stdlib/go1_12_crypto_x509_pkix.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["crypto/x509/pkix"] = map[string]reflect.Value{ + Symbols["crypto/x509/pkix"] = map[string]reflect.Value{ // function, constant and variable definitions // type definitions diff --git a/stdlib/go1_12_database_sql.go b/stdlib/go1_12_database_sql.go index fb60a2c7..08bb77f0 100644 --- a/stdlib/go1_12_database_sql.go +++ b/stdlib/go1_12_database_sql.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["database/sql"] = map[string]reflect.Value{ + Symbols["database/sql"] = map[string]reflect.Value{ // function, constant and variable definitions "Drivers": reflect.ValueOf(sql.Drivers), "ErrConnDone": reflect.ValueOf(&sql.ErrConnDone).Elem(), diff --git a/stdlib/go1_12_database_sql_driver.go b/stdlib/go1_12_database_sql_driver.go index 58adb212..878f3564 100644 --- a/stdlib/go1_12_database_sql_driver.go +++ b/stdlib/go1_12_database_sql_driver.go @@ -11,7 +11,7 @@ import ( ) func init() { - Value["database/sql/driver"] = map[string]reflect.Value{ + Symbols["database/sql/driver"] = map[string]reflect.Value{ // function, constant and variable definitions "Bool": reflect.ValueOf(&driver.Bool).Elem(), "DefaultParameterConverter": reflect.ValueOf(&driver.DefaultParameterConverter).Elem(), diff --git a/stdlib/go1_12_encoding.go b/stdlib/go1_12_encoding.go index ffce2afa..0f10e76d 100644 --- a/stdlib/go1_12_encoding.go +++ b/stdlib/go1_12_encoding.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["encoding"] = map[string]reflect.Value{ + Symbols["encoding"] = map[string]reflect.Value{ // function, constant and variable definitions // type definitions diff --git a/stdlib/go1_12_encoding_ascii85.go b/stdlib/go1_12_encoding_ascii85.go index c3914de1..0d1583aa 100644 --- a/stdlib/go1_12_encoding_ascii85.go +++ b/stdlib/go1_12_encoding_ascii85.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["encoding/ascii85"] = map[string]reflect.Value{ + Symbols["encoding/ascii85"] = map[string]reflect.Value{ // function, constant and variable definitions "Decode": reflect.ValueOf(ascii85.Decode), "Encode": reflect.ValueOf(ascii85.Encode), diff --git a/stdlib/go1_12_encoding_asn1.go b/stdlib/go1_12_encoding_asn1.go index 5f928bf6..602db0bd 100644 --- a/stdlib/go1_12_encoding_asn1.go +++ b/stdlib/go1_12_encoding_asn1.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["encoding/asn1"] = map[string]reflect.Value{ + Symbols["encoding/asn1"] = map[string]reflect.Value{ // function, constant and variable definitions "ClassApplication": reflect.ValueOf(asn1.ClassApplication), "ClassContextSpecific": reflect.ValueOf(asn1.ClassContextSpecific), diff --git a/stdlib/go1_12_encoding_base32.go b/stdlib/go1_12_encoding_base32.go index 4f03873c..4378697b 100644 --- a/stdlib/go1_12_encoding_base32.go +++ b/stdlib/go1_12_encoding_base32.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["encoding/base32"] = map[string]reflect.Value{ + Symbols["encoding/base32"] = map[string]reflect.Value{ // function, constant and variable definitions "HexEncoding": reflect.ValueOf(&base32.HexEncoding).Elem(), "NewDecoder": reflect.ValueOf(base32.NewDecoder), diff --git a/stdlib/go1_12_encoding_base64.go b/stdlib/go1_12_encoding_base64.go index 622c8e20..aa73d9a8 100644 --- a/stdlib/go1_12_encoding_base64.go +++ b/stdlib/go1_12_encoding_base64.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["encoding/base64"] = map[string]reflect.Value{ + Symbols["encoding/base64"] = map[string]reflect.Value{ // function, constant and variable definitions "NewDecoder": reflect.ValueOf(base64.NewDecoder), "NewEncoder": reflect.ValueOf(base64.NewEncoder), diff --git a/stdlib/go1_12_encoding_binary.go b/stdlib/go1_12_encoding_binary.go index a458768f..24853f9f 100644 --- a/stdlib/go1_12_encoding_binary.go +++ b/stdlib/go1_12_encoding_binary.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["encoding/binary"] = map[string]reflect.Value{ + Symbols["encoding/binary"] = map[string]reflect.Value{ // function, constant and variable definitions "BigEndian": reflect.ValueOf(&binary.BigEndian).Elem(), "LittleEndian": reflect.ValueOf(&binary.LittleEndian).Elem(), diff --git a/stdlib/go1_12_encoding_csv.go b/stdlib/go1_12_encoding_csv.go index 8b0e31fe..8925f91c 100644 --- a/stdlib/go1_12_encoding_csv.go +++ b/stdlib/go1_12_encoding_csv.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["encoding/csv"] = map[string]reflect.Value{ + Symbols["encoding/csv"] = map[string]reflect.Value{ // function, constant and variable definitions "ErrBareQuote": reflect.ValueOf(&csv.ErrBareQuote).Elem(), "ErrFieldCount": reflect.ValueOf(&csv.ErrFieldCount).Elem(), diff --git a/stdlib/go1_12_encoding_gob.go b/stdlib/go1_12_encoding_gob.go index 3b6e438a..3874517b 100644 --- a/stdlib/go1_12_encoding_gob.go +++ b/stdlib/go1_12_encoding_gob.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["encoding/gob"] = map[string]reflect.Value{ + Symbols["encoding/gob"] = map[string]reflect.Value{ // function, constant and variable definitions "NewDecoder": reflect.ValueOf(gob.NewDecoder), "NewEncoder": reflect.ValueOf(gob.NewEncoder), diff --git a/stdlib/go1_12_encoding_hex.go b/stdlib/go1_12_encoding_hex.go index 5acd8d0e..e8431aa5 100644 --- a/stdlib/go1_12_encoding_hex.go +++ b/stdlib/go1_12_encoding_hex.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["encoding/hex"] = map[string]reflect.Value{ + Symbols["encoding/hex"] = map[string]reflect.Value{ // function, constant and variable definitions "Decode": reflect.ValueOf(hex.Decode), "DecodeString": reflect.ValueOf(hex.DecodeString), diff --git a/stdlib/go1_12_encoding_json.go b/stdlib/go1_12_encoding_json.go index 96fc2d73..c9966260 100644 --- a/stdlib/go1_12_encoding_json.go +++ b/stdlib/go1_12_encoding_json.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["encoding/json"] = map[string]reflect.Value{ + Symbols["encoding/json"] = map[string]reflect.Value{ // function, constant and variable definitions "Compact": reflect.ValueOf(json.Compact), "HTMLEscape": reflect.ValueOf(json.HTMLEscape), diff --git a/stdlib/go1_12_encoding_pem.go b/stdlib/go1_12_encoding_pem.go index 0674ca85..00152646 100644 --- a/stdlib/go1_12_encoding_pem.go +++ b/stdlib/go1_12_encoding_pem.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["encoding/pem"] = map[string]reflect.Value{ + Symbols["encoding/pem"] = map[string]reflect.Value{ // function, constant and variable definitions "Decode": reflect.ValueOf(pem.Decode), "Encode": reflect.ValueOf(pem.Encode), diff --git a/stdlib/go1_12_encoding_xml.go b/stdlib/go1_12_encoding_xml.go index 577314d9..a9235fe9 100644 --- a/stdlib/go1_12_encoding_xml.go +++ b/stdlib/go1_12_encoding_xml.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["encoding/xml"] = map[string]reflect.Value{ + Symbols["encoding/xml"] = map[string]reflect.Value{ // function, constant and variable definitions "CopyToken": reflect.ValueOf(xml.CopyToken), "Escape": reflect.ValueOf(xml.Escape), diff --git a/stdlib/go1_12_errors.go b/stdlib/go1_12_errors.go index e70ffaf2..bcd316ce 100644 --- a/stdlib/go1_12_errors.go +++ b/stdlib/go1_12_errors.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["errors"] = map[string]reflect.Value{ + Symbols["errors"] = map[string]reflect.Value{ // function, constant and variable definitions "New": reflect.ValueOf(errors.New), diff --git a/stdlib/go1_12_expvar.go b/stdlib/go1_12_expvar.go index fb81166c..6b508cb0 100644 --- a/stdlib/go1_12_expvar.go +++ b/stdlib/go1_12_expvar.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["expvar"] = map[string]reflect.Value{ + Symbols["expvar"] = map[string]reflect.Value{ // function, constant and variable definitions "Do": reflect.ValueOf(expvar.Do), "Get": reflect.ValueOf(expvar.Get), diff --git a/stdlib/go1_12_flag.go b/stdlib/go1_12_flag.go index eed28d16..a66f7bc7 100644 --- a/stdlib/go1_12_flag.go +++ b/stdlib/go1_12_flag.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["flag"] = map[string]reflect.Value{ + Symbols["flag"] = map[string]reflect.Value{ // function, constant and variable definitions "Arg": reflect.ValueOf(flag.Arg), "Args": reflect.ValueOf(flag.Args), diff --git a/stdlib/go1_12_fmt.go b/stdlib/go1_12_fmt.go index dab3f5c4..7e49557a 100644 --- a/stdlib/go1_12_fmt.go +++ b/stdlib/go1_12_fmt.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["fmt"] = map[string]reflect.Value{ + Symbols["fmt"] = map[string]reflect.Value{ // function, constant and variable definitions "Errorf": reflect.ValueOf(fmt.Errorf), "Fprint": reflect.ValueOf(fmt.Fprint), diff --git a/stdlib/go1_12_go_ast.go b/stdlib/go1_12_go_ast.go index ae848972..6ce300f0 100644 --- a/stdlib/go1_12_go_ast.go +++ b/stdlib/go1_12_go_ast.go @@ -11,7 +11,7 @@ import ( ) func init() { - Value["go/ast"] = map[string]reflect.Value{ + Symbols["go/ast"] = map[string]reflect.Value{ // function, constant and variable definitions "Bad": reflect.ValueOf(ast.Bad), "Con": reflect.ValueOf(ast.Con), diff --git a/stdlib/go1_12_go_build.go b/stdlib/go1_12_go_build.go index 81379603..859376fb 100644 --- a/stdlib/go1_12_go_build.go +++ b/stdlib/go1_12_go_build.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["go/build"] = map[string]reflect.Value{ + Symbols["go/build"] = map[string]reflect.Value{ // function, constant and variable definitions "AllowBinary": reflect.ValueOf(build.AllowBinary), "ArchChar": reflect.ValueOf(build.ArchChar), diff --git a/stdlib/go1_12_go_constant.go b/stdlib/go1_12_go_constant.go index 0717a211..6dc134b9 100644 --- a/stdlib/go1_12_go_constant.go +++ b/stdlib/go1_12_go_constant.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["go/constant"] = map[string]reflect.Value{ + Symbols["go/constant"] = map[string]reflect.Value{ // function, constant and variable definitions "BinaryOp": reflect.ValueOf(constant.BinaryOp), "BitLen": reflect.ValueOf(constant.BitLen), diff --git a/stdlib/go1_12_go_doc.go b/stdlib/go1_12_go_doc.go index b2d809c5..a9f67ecf 100644 --- a/stdlib/go1_12_go_doc.go +++ b/stdlib/go1_12_go_doc.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["go/doc"] = map[string]reflect.Value{ + Symbols["go/doc"] = map[string]reflect.Value{ // function, constant and variable definitions "AllDecls": reflect.ValueOf(doc.AllDecls), "AllMethods": reflect.ValueOf(doc.AllMethods), diff --git a/stdlib/go1_12_go_format.go b/stdlib/go1_12_go_format.go index 586521ff..1a549fee 100644 --- a/stdlib/go1_12_go_format.go +++ b/stdlib/go1_12_go_format.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["go/format"] = map[string]reflect.Value{ + Symbols["go/format"] = map[string]reflect.Value{ // function, constant and variable definitions "Node": reflect.ValueOf(format.Node), "Source": reflect.ValueOf(format.Source), diff --git a/stdlib/go1_12_go_importer.go b/stdlib/go1_12_go_importer.go index fb2f1252..ffd1413e 100644 --- a/stdlib/go1_12_go_importer.go +++ b/stdlib/go1_12_go_importer.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["go/importer"] = map[string]reflect.Value{ + Symbols["go/importer"] = map[string]reflect.Value{ // function, constant and variable definitions "Default": reflect.ValueOf(importer.Default), "For": reflect.ValueOf(importer.For), diff --git a/stdlib/go1_12_go_parser.go b/stdlib/go1_12_go_parser.go index 35aa11e3..438f20f5 100644 --- a/stdlib/go1_12_go_parser.go +++ b/stdlib/go1_12_go_parser.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["go/parser"] = map[string]reflect.Value{ + Symbols["go/parser"] = map[string]reflect.Value{ // function, constant and variable definitions "AllErrors": reflect.ValueOf(parser.AllErrors), "DeclarationErrors": reflect.ValueOf(parser.DeclarationErrors), diff --git a/stdlib/go1_12_go_printer.go b/stdlib/go1_12_go_printer.go index 982e2de9..8f5c1452 100644 --- a/stdlib/go1_12_go_printer.go +++ b/stdlib/go1_12_go_printer.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["go/printer"] = map[string]reflect.Value{ + Symbols["go/printer"] = map[string]reflect.Value{ // function, constant and variable definitions "Fprint": reflect.ValueOf(printer.Fprint), "RawFormat": reflect.ValueOf(printer.RawFormat), diff --git a/stdlib/go1_12_go_scanner.go b/stdlib/go1_12_go_scanner.go index a9a2ec64..db8e6303 100644 --- a/stdlib/go1_12_go_scanner.go +++ b/stdlib/go1_12_go_scanner.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["go/scanner"] = map[string]reflect.Value{ + Symbols["go/scanner"] = map[string]reflect.Value{ // function, constant and variable definitions "PrintError": reflect.ValueOf(scanner.PrintError), "ScanComments": reflect.ValueOf(scanner.ScanComments), diff --git a/stdlib/go1_12_go_token.go b/stdlib/go1_12_go_token.go index c0736572..3faadc61 100644 --- a/stdlib/go1_12_go_token.go +++ b/stdlib/go1_12_go_token.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["go/token"] = map[string]reflect.Value{ + Symbols["go/token"] = map[string]reflect.Value{ // function, constant and variable definitions "ADD": reflect.ValueOf(token.ADD), "ADD_ASSIGN": reflect.ValueOf(token.ADD_ASSIGN), diff --git a/stdlib/go1_12_go_types.go b/stdlib/go1_12_go_types.go index 81b42608..0edd5324 100644 --- a/stdlib/go1_12_go_types.go +++ b/stdlib/go1_12_go_types.go @@ -11,7 +11,7 @@ import ( ) func init() { - Value["go/types"] = map[string]reflect.Value{ + Symbols["go/types"] = map[string]reflect.Value{ // function, constant and variable definitions "AssertableTo": reflect.ValueOf(types.AssertableTo), "AssignableTo": reflect.ValueOf(types.AssignableTo), diff --git a/stdlib/go1_12_hash.go b/stdlib/go1_12_hash.go index 01b5f398..b3ce1ca5 100644 --- a/stdlib/go1_12_hash.go +++ b/stdlib/go1_12_hash.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["hash"] = map[string]reflect.Value{ + Symbols["hash"] = map[string]reflect.Value{ // function, constant and variable definitions // type definitions diff --git a/stdlib/go1_12_hash_adler32.go b/stdlib/go1_12_hash_adler32.go index 62fe9659..5ca94336 100644 --- a/stdlib/go1_12_hash_adler32.go +++ b/stdlib/go1_12_hash_adler32.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["hash/adler32"] = map[string]reflect.Value{ + Symbols["hash/adler32"] = map[string]reflect.Value{ // function, constant and variable definitions "Checksum": reflect.ValueOf(adler32.Checksum), "New": reflect.ValueOf(adler32.New), diff --git a/stdlib/go1_12_hash_crc32.go b/stdlib/go1_12_hash_crc32.go index 432894f1..4e2256f0 100644 --- a/stdlib/go1_12_hash_crc32.go +++ b/stdlib/go1_12_hash_crc32.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["hash/crc32"] = map[string]reflect.Value{ + Symbols["hash/crc32"] = map[string]reflect.Value{ // function, constant and variable definitions "Castagnoli": reflect.ValueOf(uint32(crc32.Castagnoli)), "Checksum": reflect.ValueOf(crc32.Checksum), diff --git a/stdlib/go1_12_hash_crc64.go b/stdlib/go1_12_hash_crc64.go index 42b4b39f..aa36f64e 100644 --- a/stdlib/go1_12_hash_crc64.go +++ b/stdlib/go1_12_hash_crc64.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["hash/crc64"] = map[string]reflect.Value{ + Symbols["hash/crc64"] = map[string]reflect.Value{ // function, constant and variable definitions "Checksum": reflect.ValueOf(crc64.Checksum), "ECMA": reflect.ValueOf(uint64(crc64.ECMA)), diff --git a/stdlib/go1_12_hash_fnv.go b/stdlib/go1_12_hash_fnv.go index 8eabe596..b933c9a5 100644 --- a/stdlib/go1_12_hash_fnv.go +++ b/stdlib/go1_12_hash_fnv.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["hash/fnv"] = map[string]reflect.Value{ + Symbols["hash/fnv"] = map[string]reflect.Value{ // function, constant and variable definitions "New128": reflect.ValueOf(fnv.New128), "New128a": reflect.ValueOf(fnv.New128a), diff --git a/stdlib/go1_12_html.go b/stdlib/go1_12_html.go index de4925fd..66ebde7e 100644 --- a/stdlib/go1_12_html.go +++ b/stdlib/go1_12_html.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["html"] = map[string]reflect.Value{ + Symbols["html"] = map[string]reflect.Value{ // function, constant and variable definitions "EscapeString": reflect.ValueOf(html.EscapeString), "UnescapeString": reflect.ValueOf(html.UnescapeString), diff --git a/stdlib/go1_12_html_template.go b/stdlib/go1_12_html_template.go index 0d4b4b54..718ddef2 100644 --- a/stdlib/go1_12_html_template.go +++ b/stdlib/go1_12_html_template.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["html/template"] = map[string]reflect.Value{ + Symbols["html/template"] = map[string]reflect.Value{ // function, constant and variable definitions "ErrAmbigContext": reflect.ValueOf(template.ErrAmbigContext), "ErrBadHTML": reflect.ValueOf(template.ErrBadHTML), diff --git a/stdlib/go1_12_image.go b/stdlib/go1_12_image.go index 820832e6..f3673856 100644 --- a/stdlib/go1_12_image.go +++ b/stdlib/go1_12_image.go @@ -11,7 +11,7 @@ import ( ) func init() { - Value["image"] = map[string]reflect.Value{ + Symbols["image"] = map[string]reflect.Value{ // function, constant and variable definitions "Black": reflect.ValueOf(&image.Black).Elem(), "Decode": reflect.ValueOf(image.Decode), diff --git a/stdlib/go1_12_image_color.go b/stdlib/go1_12_image_color.go index 5eb32f09..6217c90e 100644 --- a/stdlib/go1_12_image_color.go +++ b/stdlib/go1_12_image_color.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["image/color"] = map[string]reflect.Value{ + Symbols["image/color"] = map[string]reflect.Value{ // function, constant and variable definitions "Alpha16Model": reflect.ValueOf(&color.Alpha16Model).Elem(), "AlphaModel": reflect.ValueOf(&color.AlphaModel).Elem(), diff --git a/stdlib/go1_12_image_color_palette.go b/stdlib/go1_12_image_color_palette.go index c80814d8..93e452b2 100644 --- a/stdlib/go1_12_image_color_palette.go +++ b/stdlib/go1_12_image_color_palette.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["image/color/palette"] = map[string]reflect.Value{ + Symbols["image/color/palette"] = map[string]reflect.Value{ // function, constant and variable definitions "Plan9": reflect.ValueOf(&palette.Plan9).Elem(), "WebSafe": reflect.ValueOf(&palette.WebSafe).Elem(), diff --git a/stdlib/go1_12_image_draw.go b/stdlib/go1_12_image_draw.go index 68dc1b2c..aa1bc9e2 100644 --- a/stdlib/go1_12_image_draw.go +++ b/stdlib/go1_12_image_draw.go @@ -12,7 +12,7 @@ import ( ) func init() { - Value["image/draw"] = map[string]reflect.Value{ + Symbols["image/draw"] = map[string]reflect.Value{ // function, constant and variable definitions "Draw": reflect.ValueOf(draw.Draw), "DrawMask": reflect.ValueOf(draw.DrawMask), diff --git a/stdlib/go1_12_image_gif.go b/stdlib/go1_12_image_gif.go index fe2262f4..e08b2b42 100644 --- a/stdlib/go1_12_image_gif.go +++ b/stdlib/go1_12_image_gif.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["image/gif"] = map[string]reflect.Value{ + Symbols["image/gif"] = map[string]reflect.Value{ // function, constant and variable definitions "Decode": reflect.ValueOf(gif.Decode), "DecodeAll": reflect.ValueOf(gif.DecodeAll), diff --git a/stdlib/go1_12_image_jpeg.go b/stdlib/go1_12_image_jpeg.go index 263db391..70bbd4ee 100644 --- a/stdlib/go1_12_image_jpeg.go +++ b/stdlib/go1_12_image_jpeg.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["image/jpeg"] = map[string]reflect.Value{ + Symbols["image/jpeg"] = map[string]reflect.Value{ // function, constant and variable definitions "Decode": reflect.ValueOf(jpeg.Decode), "DecodeConfig": reflect.ValueOf(jpeg.DecodeConfig), diff --git a/stdlib/go1_12_image_png.go b/stdlib/go1_12_image_png.go index a80c7a1f..38de842e 100644 --- a/stdlib/go1_12_image_png.go +++ b/stdlib/go1_12_image_png.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["image/png"] = map[string]reflect.Value{ + Symbols["image/png"] = map[string]reflect.Value{ // function, constant and variable definitions "BestCompression": reflect.ValueOf(png.BestCompression), "BestSpeed": reflect.ValueOf(png.BestSpeed), diff --git a/stdlib/go1_12_index_suffixarray.go b/stdlib/go1_12_index_suffixarray.go index d75c62d8..e7a0aa61 100644 --- a/stdlib/go1_12_index_suffixarray.go +++ b/stdlib/go1_12_index_suffixarray.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["index/suffixarray"] = map[string]reflect.Value{ + Symbols["index/suffixarray"] = map[string]reflect.Value{ // function, constant and variable definitions "New": reflect.ValueOf(suffixarray.New), diff --git a/stdlib/go1_12_io.go b/stdlib/go1_12_io.go index 52135655..b473d9fd 100644 --- a/stdlib/go1_12_io.go +++ b/stdlib/go1_12_io.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["io"] = map[string]reflect.Value{ + Symbols["io"] = map[string]reflect.Value{ // function, constant and variable definitions "Copy": reflect.ValueOf(io.Copy), "CopyBuffer": reflect.ValueOf(io.CopyBuffer), diff --git a/stdlib/go1_12_io_ioutil.go b/stdlib/go1_12_io_ioutil.go index 0ca3c711..73804802 100644 --- a/stdlib/go1_12_io_ioutil.go +++ b/stdlib/go1_12_io_ioutil.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["io/ioutil"] = map[string]reflect.Value{ + Symbols["io/ioutil"] = map[string]reflect.Value{ // function, constant and variable definitions "Discard": reflect.ValueOf(&ioutil.Discard).Elem(), "NopCloser": reflect.ValueOf(ioutil.NopCloser), diff --git a/stdlib/go1_12_log.go b/stdlib/go1_12_log.go index 0cb68eef..8c92e58d 100644 --- a/stdlib/go1_12_log.go +++ b/stdlib/go1_12_log.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["log"] = map[string]reflect.Value{ + Symbols["log"] = map[string]reflect.Value{ // function, constant and variable definitions "Fatal": reflect.ValueOf(log.Fatal), "Fatalf": reflect.ValueOf(log.Fatalf), diff --git a/stdlib/go1_12_log_syslog.go b/stdlib/go1_12_log_syslog.go index 235a6a6d..d30de702 100644 --- a/stdlib/go1_12_log_syslog.go +++ b/stdlib/go1_12_log_syslog.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["log/syslog"] = map[string]reflect.Value{ + Symbols["log/syslog"] = map[string]reflect.Value{ // function, constant and variable definitions "Dial": reflect.ValueOf(syslog.Dial), "LOG_ALERT": reflect.ValueOf(syslog.LOG_ALERT), diff --git a/stdlib/go1_12_math.go b/stdlib/go1_12_math.go index 388e9dcf..f7989d00 100644 --- a/stdlib/go1_12_math.go +++ b/stdlib/go1_12_math.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["math"] = map[string]reflect.Value{ + Symbols["math"] = map[string]reflect.Value{ // function, constant and variable definitions "Abs": reflect.ValueOf(math.Abs), "Acos": reflect.ValueOf(math.Acos), diff --git a/stdlib/go1_12_math_big.go b/stdlib/go1_12_math_big.go index 60b2341a..0c37683d 100644 --- a/stdlib/go1_12_math_big.go +++ b/stdlib/go1_12_math_big.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["math/big"] = map[string]reflect.Value{ + Symbols["math/big"] = map[string]reflect.Value{ // function, constant and variable definitions "Above": reflect.ValueOf(big.Above), "AwayFromZero": reflect.ValueOf(big.AwayFromZero), diff --git a/stdlib/go1_12_math_bits.go b/stdlib/go1_12_math_bits.go index 9f390dff..341d8ba9 100644 --- a/stdlib/go1_12_math_bits.go +++ b/stdlib/go1_12_math_bits.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["math/bits"] = map[string]reflect.Value{ + Symbols["math/bits"] = map[string]reflect.Value{ // function, constant and variable definitions "Add": reflect.ValueOf(bits.Add), "Add32": reflect.ValueOf(bits.Add32), diff --git a/stdlib/go1_12_math_cmplx.go b/stdlib/go1_12_math_cmplx.go index 59e720b4..303adbb4 100644 --- a/stdlib/go1_12_math_cmplx.go +++ b/stdlib/go1_12_math_cmplx.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["math/cmplx"] = map[string]reflect.Value{ + Symbols["math/cmplx"] = map[string]reflect.Value{ // function, constant and variable definitions "Abs": reflect.ValueOf(cmplx.Abs), "Acos": reflect.ValueOf(cmplx.Acos), diff --git a/stdlib/go1_12_math_rand.go b/stdlib/go1_12_math_rand.go index 3db9f9f3..cc0ef234 100644 --- a/stdlib/go1_12_math_rand.go +++ b/stdlib/go1_12_math_rand.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["math/rand"] = map[string]reflect.Value{ + Symbols["math/rand"] = map[string]reflect.Value{ // function, constant and variable definitions "ExpFloat64": reflect.ValueOf(rand.ExpFloat64), "Float32": reflect.ValueOf(rand.Float32), diff --git a/stdlib/go1_12_mime.go b/stdlib/go1_12_mime.go index 14eebde8..9090cc31 100644 --- a/stdlib/go1_12_mime.go +++ b/stdlib/go1_12_mime.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["mime"] = map[string]reflect.Value{ + Symbols["mime"] = map[string]reflect.Value{ // function, constant and variable definitions "AddExtensionType": reflect.ValueOf(mime.AddExtensionType), "BEncoding": reflect.ValueOf(mime.BEncoding), diff --git a/stdlib/go1_12_mime_multipart.go b/stdlib/go1_12_mime_multipart.go index 046b84cc..f83b780a 100644 --- a/stdlib/go1_12_mime_multipart.go +++ b/stdlib/go1_12_mime_multipart.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["mime/multipart"] = map[string]reflect.Value{ + Symbols["mime/multipart"] = map[string]reflect.Value{ // function, constant and variable definitions "ErrMessageTooLarge": reflect.ValueOf(&multipart.ErrMessageTooLarge).Elem(), "NewReader": reflect.ValueOf(multipart.NewReader), diff --git a/stdlib/go1_12_mime_quotedprintable.go b/stdlib/go1_12_mime_quotedprintable.go index c8ab6f0b..ed0bde17 100644 --- a/stdlib/go1_12_mime_quotedprintable.go +++ b/stdlib/go1_12_mime_quotedprintable.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["mime/quotedprintable"] = map[string]reflect.Value{ + Symbols["mime/quotedprintable"] = map[string]reflect.Value{ // function, constant and variable definitions "NewReader": reflect.ValueOf(quotedprintable.NewReader), "NewWriter": reflect.ValueOf(quotedprintable.NewWriter), diff --git a/stdlib/go1_12_net.go b/stdlib/go1_12_net.go index 4cf2970a..d6968a6e 100644 --- a/stdlib/go1_12_net.go +++ b/stdlib/go1_12_net.go @@ -11,7 +11,7 @@ import ( ) func init() { - Value["net"] = map[string]reflect.Value{ + Symbols["net"] = map[string]reflect.Value{ // function, constant and variable definitions "CIDRMask": reflect.ValueOf(net.CIDRMask), "DefaultResolver": reflect.ValueOf(&net.DefaultResolver).Elem(), diff --git a/stdlib/go1_12_net_http.go b/stdlib/go1_12_net_http.go index cbab9ba3..9949bb72 100644 --- a/stdlib/go1_12_net_http.go +++ b/stdlib/go1_12_net_http.go @@ -14,7 +14,7 @@ import ( ) func init() { - Value["net/http"] = map[string]reflect.Value{ + Symbols["net/http"] = map[string]reflect.Value{ // function, constant and variable definitions "CanonicalHeaderKey": reflect.ValueOf(http.CanonicalHeaderKey), "DefaultClient": reflect.ValueOf(&http.DefaultClient).Elem(), diff --git a/stdlib/go1_12_net_http_cgi.go b/stdlib/go1_12_net_http_cgi.go index e9a15141..744821ea 100644 --- a/stdlib/go1_12_net_http_cgi.go +++ b/stdlib/go1_12_net_http_cgi.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["net/http/cgi"] = map[string]reflect.Value{ + Symbols["net/http/cgi"] = map[string]reflect.Value{ // function, constant and variable definitions "Request": reflect.ValueOf(cgi.Request), "RequestFromMap": reflect.ValueOf(cgi.RequestFromMap), diff --git a/stdlib/go1_12_net_http_cookiejar.go b/stdlib/go1_12_net_http_cookiejar.go index 66e6c52e..e9db90e0 100644 --- a/stdlib/go1_12_net_http_cookiejar.go +++ b/stdlib/go1_12_net_http_cookiejar.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["net/http/cookiejar"] = map[string]reflect.Value{ + Symbols["net/http/cookiejar"] = map[string]reflect.Value{ // function, constant and variable definitions "New": reflect.ValueOf(cookiejar.New), diff --git a/stdlib/go1_12_net_http_fcgi.go b/stdlib/go1_12_net_http_fcgi.go index a394db13..673bcb92 100644 --- a/stdlib/go1_12_net_http_fcgi.go +++ b/stdlib/go1_12_net_http_fcgi.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["net/http/fcgi"] = map[string]reflect.Value{ + Symbols["net/http/fcgi"] = map[string]reflect.Value{ // function, constant and variable definitions "ErrConnClosed": reflect.ValueOf(&fcgi.ErrConnClosed).Elem(), "ErrRequestAborted": reflect.ValueOf(&fcgi.ErrRequestAborted).Elem(), diff --git a/stdlib/go1_12_net_http_httptest.go b/stdlib/go1_12_net_http_httptest.go index a2c831ef..bc131c7e 100644 --- a/stdlib/go1_12_net_http_httptest.go +++ b/stdlib/go1_12_net_http_httptest.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["net/http/httptest"] = map[string]reflect.Value{ + Symbols["net/http/httptest"] = map[string]reflect.Value{ // function, constant and variable definitions "DefaultRemoteAddr": reflect.ValueOf(httptest.DefaultRemoteAddr), "NewRecorder": reflect.ValueOf(httptest.NewRecorder), diff --git a/stdlib/go1_12_net_http_httptrace.go b/stdlib/go1_12_net_http_httptrace.go index b7457ff9..b72d3fcc 100644 --- a/stdlib/go1_12_net_http_httptrace.go +++ b/stdlib/go1_12_net_http_httptrace.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["net/http/httptrace"] = map[string]reflect.Value{ + Symbols["net/http/httptrace"] = map[string]reflect.Value{ // function, constant and variable definitions "ContextClientTrace": reflect.ValueOf(httptrace.ContextClientTrace), "WithClientTrace": reflect.ValueOf(httptrace.WithClientTrace), diff --git a/stdlib/go1_12_net_http_httputil.go b/stdlib/go1_12_net_http_httputil.go index ccbe71ba..a3042020 100644 --- a/stdlib/go1_12_net_http_httputil.go +++ b/stdlib/go1_12_net_http_httputil.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["net/http/httputil"] = map[string]reflect.Value{ + Symbols["net/http/httputil"] = map[string]reflect.Value{ // function, constant and variable definitions "DumpRequest": reflect.ValueOf(httputil.DumpRequest), "DumpRequestOut": reflect.ValueOf(httputil.DumpRequestOut), diff --git a/stdlib/go1_12_net_mail.go b/stdlib/go1_12_net_mail.go index 4cf942a6..c4538b58 100644 --- a/stdlib/go1_12_net_mail.go +++ b/stdlib/go1_12_net_mail.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["net/mail"] = map[string]reflect.Value{ + Symbols["net/mail"] = map[string]reflect.Value{ // function, constant and variable definitions "ErrHeaderNotPresent": reflect.ValueOf(&mail.ErrHeaderNotPresent).Elem(), "ParseAddress": reflect.ValueOf(mail.ParseAddress), diff --git a/stdlib/go1_12_net_rpc.go b/stdlib/go1_12_net_rpc.go index 18af8f1e..edb6deb3 100644 --- a/stdlib/go1_12_net_rpc.go +++ b/stdlib/go1_12_net_rpc.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["net/rpc"] = map[string]reflect.Value{ + Symbols["net/rpc"] = map[string]reflect.Value{ // function, constant and variable definitions "Accept": reflect.ValueOf(rpc.Accept), "DefaultDebugPath": reflect.ValueOf(rpc.DefaultDebugPath), diff --git a/stdlib/go1_12_net_rpc_jsonrpc.go b/stdlib/go1_12_net_rpc_jsonrpc.go index 18125ea1..8bedeaf3 100644 --- a/stdlib/go1_12_net_rpc_jsonrpc.go +++ b/stdlib/go1_12_net_rpc_jsonrpc.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["net/rpc/jsonrpc"] = map[string]reflect.Value{ + Symbols["net/rpc/jsonrpc"] = map[string]reflect.Value{ // function, constant and variable definitions "Dial": reflect.ValueOf(jsonrpc.Dial), "NewClient": reflect.ValueOf(jsonrpc.NewClient), diff --git a/stdlib/go1_12_net_smtp.go b/stdlib/go1_12_net_smtp.go index 8b7c65f3..1e055820 100644 --- a/stdlib/go1_12_net_smtp.go +++ b/stdlib/go1_12_net_smtp.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["net/smtp"] = map[string]reflect.Value{ + Symbols["net/smtp"] = map[string]reflect.Value{ // function, constant and variable definitions "CRAMMD5Auth": reflect.ValueOf(smtp.CRAMMD5Auth), "Dial": reflect.ValueOf(smtp.Dial), diff --git a/stdlib/go1_12_net_textproto.go b/stdlib/go1_12_net_textproto.go index b99485cd..04e7b017 100644 --- a/stdlib/go1_12_net_textproto.go +++ b/stdlib/go1_12_net_textproto.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["net/textproto"] = map[string]reflect.Value{ + Symbols["net/textproto"] = map[string]reflect.Value{ // function, constant and variable definitions "CanonicalMIMEHeaderKey": reflect.ValueOf(textproto.CanonicalMIMEHeaderKey), "Dial": reflect.ValueOf(textproto.Dial), diff --git a/stdlib/go1_12_net_url.go b/stdlib/go1_12_net_url.go index 73551d92..a0089a5c 100644 --- a/stdlib/go1_12_net_url.go +++ b/stdlib/go1_12_net_url.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["net/url"] = map[string]reflect.Value{ + Symbols["net/url"] = map[string]reflect.Value{ // function, constant and variable definitions "Parse": reflect.ValueOf(url.Parse), "ParseQuery": reflect.ValueOf(url.ParseQuery), diff --git a/stdlib/go1_12_os.go b/stdlib/go1_12_os.go index 67ccf00b..8866e105 100644 --- a/stdlib/go1_12_os.go +++ b/stdlib/go1_12_os.go @@ -11,7 +11,7 @@ import ( ) func init() { - Value["os"] = map[string]reflect.Value{ + Symbols["os"] = map[string]reflect.Value{ // function, constant and variable definitions "Args": reflect.ValueOf(&os.Args).Elem(), "Chdir": reflect.ValueOf(os.Chdir), diff --git a/stdlib/go1_12_os_exec.go b/stdlib/go1_12_os_exec.go index cfef9c9a..0dbc8f67 100644 --- a/stdlib/go1_12_os_exec.go +++ b/stdlib/go1_12_os_exec.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["os/exec"] = map[string]reflect.Value{ + Symbols["os/exec"] = map[string]reflect.Value{ // function, constant and variable definitions "Command": reflect.ValueOf(exec.Command), "CommandContext": reflect.ValueOf(exec.CommandContext), diff --git a/stdlib/go1_12_os_signal.go b/stdlib/go1_12_os_signal.go index bfd1c01f..fb30a3b9 100644 --- a/stdlib/go1_12_os_signal.go +++ b/stdlib/go1_12_os_signal.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["os/signal"] = map[string]reflect.Value{ + Symbols["os/signal"] = map[string]reflect.Value{ // function, constant and variable definitions "Ignore": reflect.ValueOf(signal.Ignore), "Ignored": reflect.ValueOf(signal.Ignored), diff --git a/stdlib/go1_12_os_user.go b/stdlib/go1_12_os_user.go index 464bdae1..a2db550a 100644 --- a/stdlib/go1_12_os_user.go +++ b/stdlib/go1_12_os_user.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["os/user"] = map[string]reflect.Value{ + Symbols["os/user"] = map[string]reflect.Value{ // function, constant and variable definitions "Current": reflect.ValueOf(user.Current), "Lookup": reflect.ValueOf(user.Lookup), diff --git a/stdlib/go1_12_path.go b/stdlib/go1_12_path.go index 97476bd2..ab21ef4d 100644 --- a/stdlib/go1_12_path.go +++ b/stdlib/go1_12_path.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["path"] = map[string]reflect.Value{ + Symbols["path"] = map[string]reflect.Value{ // function, constant and variable definitions "Base": reflect.ValueOf(path.Base), "Clean": reflect.ValueOf(path.Clean), diff --git a/stdlib/go1_12_path_filepath.go b/stdlib/go1_12_path_filepath.go index 4dc44b1b..7686f53c 100644 --- a/stdlib/go1_12_path_filepath.go +++ b/stdlib/go1_12_path_filepath.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["path/filepath"] = map[string]reflect.Value{ + Symbols["path/filepath"] = map[string]reflect.Value{ // function, constant and variable definitions "Abs": reflect.ValueOf(filepath.Abs), "Base": reflect.ValueOf(filepath.Base), diff --git a/stdlib/go1_12_reflect.go b/stdlib/go1_12_reflect.go index beb0becc..f568be5b 100644 --- a/stdlib/go1_12_reflect.go +++ b/stdlib/go1_12_reflect.go @@ -9,7 +9,7 @@ import ( ) func init() { - Value["reflect"] = map[string]reflect.Value{ + Symbols["reflect"] = map[string]reflect.Value{ // function, constant and variable definitions "Append": reflect.ValueOf(reflect.Append), "AppendSlice": reflect.ValueOf(reflect.AppendSlice), diff --git a/stdlib/go1_12_regexp.go b/stdlib/go1_12_regexp.go index 9a896496..a672cc8f 100644 --- a/stdlib/go1_12_regexp.go +++ b/stdlib/go1_12_regexp.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["regexp"] = map[string]reflect.Value{ + Symbols["regexp"] = map[string]reflect.Value{ // function, constant and variable definitions "Compile": reflect.ValueOf(regexp.Compile), "CompilePOSIX": reflect.ValueOf(regexp.CompilePOSIX), diff --git a/stdlib/go1_12_regexp_syntax.go b/stdlib/go1_12_regexp_syntax.go index e7737bd2..69d3b5df 100644 --- a/stdlib/go1_12_regexp_syntax.go +++ b/stdlib/go1_12_regexp_syntax.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["regexp/syntax"] = map[string]reflect.Value{ + Symbols["regexp/syntax"] = map[string]reflect.Value{ // function, constant and variable definitions "ClassNL": reflect.ValueOf(syntax.ClassNL), "Compile": reflect.ValueOf(syntax.Compile), diff --git a/stdlib/go1_12_runtime.go b/stdlib/go1_12_runtime.go index 16bf9046..e88254a3 100644 --- a/stdlib/go1_12_runtime.go +++ b/stdlib/go1_12_runtime.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["runtime"] = map[string]reflect.Value{ + Symbols["runtime"] = map[string]reflect.Value{ // function, constant and variable definitions "BlockProfile": reflect.ValueOf(runtime.BlockProfile), "Breakpoint": reflect.ValueOf(runtime.Breakpoint), diff --git a/stdlib/go1_12_runtime_debug.go b/stdlib/go1_12_runtime_debug.go index a0e7f73a..77a3a7f6 100644 --- a/stdlib/go1_12_runtime_debug.go +++ b/stdlib/go1_12_runtime_debug.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["runtime/debug"] = map[string]reflect.Value{ + Symbols["runtime/debug"] = map[string]reflect.Value{ // function, constant and variable definitions "FreeOSMemory": reflect.ValueOf(debug.FreeOSMemory), "PrintStack": reflect.ValueOf(debug.PrintStack), diff --git a/stdlib/go1_12_sort.go b/stdlib/go1_12_sort.go index b082a472..1afdd58a 100644 --- a/stdlib/go1_12_sort.go +++ b/stdlib/go1_12_sort.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["sort"] = map[string]reflect.Value{ + Symbols["sort"] = map[string]reflect.Value{ // function, constant and variable definitions "Float64s": reflect.ValueOf(sort.Float64s), "Float64sAreSorted": reflect.ValueOf(sort.Float64sAreSorted), diff --git a/stdlib/go1_12_strconv.go b/stdlib/go1_12_strconv.go index ddd14975..d58509d6 100644 --- a/stdlib/go1_12_strconv.go +++ b/stdlib/go1_12_strconv.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["strconv"] = map[string]reflect.Value{ + Symbols["strconv"] = map[string]reflect.Value{ // function, constant and variable definitions "AppendBool": reflect.ValueOf(strconv.AppendBool), "AppendFloat": reflect.ValueOf(strconv.AppendFloat), diff --git a/stdlib/go1_12_strings.go b/stdlib/go1_12_strings.go index c0bbf314..f2d6e887 100644 --- a/stdlib/go1_12_strings.go +++ b/stdlib/go1_12_strings.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["strings"] = map[string]reflect.Value{ + Symbols["strings"] = map[string]reflect.Value{ // function, constant and variable definitions "Compare": reflect.ValueOf(strings.Compare), "Contains": reflect.ValueOf(strings.Contains), diff --git a/stdlib/go1_12_sync.go b/stdlib/go1_12_sync.go index e7ba71c2..df9e5363 100644 --- a/stdlib/go1_12_sync.go +++ b/stdlib/go1_12_sync.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["sync"] = map[string]reflect.Value{ + Symbols["sync"] = map[string]reflect.Value{ // function, constant and variable definitions "NewCond": reflect.ValueOf(sync.NewCond), diff --git a/stdlib/go1_12_sync_atomic.go b/stdlib/go1_12_sync_atomic.go index deeb4299..d4dc5b20 100644 --- a/stdlib/go1_12_sync_atomic.go +++ b/stdlib/go1_12_sync_atomic.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["sync/atomic"] = map[string]reflect.Value{ + Symbols["sync/atomic"] = map[string]reflect.Value{ // function, constant and variable definitions "AddInt32": reflect.ValueOf(atomic.AddInt32), "AddInt64": reflect.ValueOf(atomic.AddInt64), diff --git a/stdlib/go1_12_text_scanner.go b/stdlib/go1_12_text_scanner.go index 3b5a05b9..45c20d0d 100644 --- a/stdlib/go1_12_text_scanner.go +++ b/stdlib/go1_12_text_scanner.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["text/scanner"] = map[string]reflect.Value{ + Symbols["text/scanner"] = map[string]reflect.Value{ // function, constant and variable definitions "Char": reflect.ValueOf(scanner.Char), "Comment": reflect.ValueOf(scanner.Comment), diff --git a/stdlib/go1_12_text_tabwriter.go b/stdlib/go1_12_text_tabwriter.go index e6360d09..95dd6be5 100644 --- a/stdlib/go1_12_text_tabwriter.go +++ b/stdlib/go1_12_text_tabwriter.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["text/tabwriter"] = map[string]reflect.Value{ + Symbols["text/tabwriter"] = map[string]reflect.Value{ // function, constant and variable definitions "AlignRight": reflect.ValueOf(tabwriter.AlignRight), "Debug": reflect.ValueOf(tabwriter.Debug), diff --git a/stdlib/go1_12_text_template.go b/stdlib/go1_12_text_template.go index 44233f63..96c86b9b 100644 --- a/stdlib/go1_12_text_template.go +++ b/stdlib/go1_12_text_template.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["text/template"] = map[string]reflect.Value{ + Symbols["text/template"] = map[string]reflect.Value{ // function, constant and variable definitions "HTMLEscape": reflect.ValueOf(template.HTMLEscape), "HTMLEscapeString": reflect.ValueOf(template.HTMLEscapeString), diff --git a/stdlib/go1_12_text_template_parse.go b/stdlib/go1_12_text_template_parse.go index bdaa2d56..da6e9a5b 100644 --- a/stdlib/go1_12_text_template_parse.go +++ b/stdlib/go1_12_text_template_parse.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["text/template/parse"] = map[string]reflect.Value{ + Symbols["text/template/parse"] = map[string]reflect.Value{ // function, constant and variable definitions "IsEmptyTree": reflect.ValueOf(parse.IsEmptyTree), "New": reflect.ValueOf(parse.New), diff --git a/stdlib/go1_12_time.go b/stdlib/go1_12_time.go index c0989584..3c4f6b26 100644 --- a/stdlib/go1_12_time.go +++ b/stdlib/go1_12_time.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["time"] = map[string]reflect.Value{ + Symbols["time"] = map[string]reflect.Value{ // function, constant and variable definitions "ANSIC": reflect.ValueOf(time.ANSIC), "After": reflect.ValueOf(time.After), diff --git a/stdlib/go1_12_unicode.go b/stdlib/go1_12_unicode.go index fff6d983..38b422ca 100644 --- a/stdlib/go1_12_unicode.go +++ b/stdlib/go1_12_unicode.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["unicode"] = map[string]reflect.Value{ + Symbols["unicode"] = map[string]reflect.Value{ // function, constant and variable definitions "ASCII_Hex_Digit": reflect.ValueOf(&unicode.ASCII_Hex_Digit).Elem(), "Adlam": reflect.ValueOf(&unicode.Adlam).Elem(), diff --git a/stdlib/go1_12_unicode_utf16.go b/stdlib/go1_12_unicode_utf16.go index 46f9ab65..9d5df055 100644 --- a/stdlib/go1_12_unicode_utf16.go +++ b/stdlib/go1_12_unicode_utf16.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["unicode/utf16"] = map[string]reflect.Value{ + Symbols["unicode/utf16"] = map[string]reflect.Value{ // function, constant and variable definitions "Decode": reflect.ValueOf(utf16.Decode), "DecodeRune": reflect.ValueOf(utf16.DecodeRune), diff --git a/stdlib/go1_12_unicode_utf8.go b/stdlib/go1_12_unicode_utf8.go index b345c6cc..cce0cea6 100644 --- a/stdlib/go1_12_unicode_utf8.go +++ b/stdlib/go1_12_unicode_utf8.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["unicode/utf8"] = map[string]reflect.Value{ + Symbols["unicode/utf8"] = map[string]reflect.Value{ // function, constant and variable definitions "DecodeLastRune": reflect.ValueOf(utf8.DecodeLastRune), "DecodeLastRuneInString": reflect.ValueOf(utf8.DecodeLastRuneInString), diff --git a/stdlib/stdlib.go b/stdlib/stdlib.go index de71dae8..1d68fded 100644 --- a/stdlib/stdlib.go +++ b/stdlib/stdlib.go @@ -2,11 +2,8 @@ package stdlib import "reflect" -// Value stores the map of stdlib values per package -var Value = map[string]map[string]reflect.Value{} - -// Wrapper stores the map of stdlib interface wrapper types per package -var Wrapper = map[string]map[string]reflect.Type{} +// Symbols variable stores the map of stdlib symbols per package +var Symbols = map[string]map[string]reflect.Value{} // Provide access to go standard library (http://golang.org/pkg/) diff --git a/stdlib/syscall/go1_11_syscall_android_386.go b/stdlib/syscall/go1_11_syscall_android_386.go index a0b8e4a9..3d48f28c 100644 --- a/stdlib/syscall/go1_11_syscall_android_386.go +++ b/stdlib/syscall/go1_11_syscall_android_386.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["syscall"] = map[string]reflect.Value{ + Symbols["syscall"] = map[string]reflect.Value{ // function, constant and variable definitions "AF_ALG": reflect.ValueOf(syscall.AF_ALG), "AF_APPLETALK": reflect.ValueOf(syscall.AF_APPLETALK), diff --git a/stdlib/syscall/go1_11_syscall_android_amd64.go b/stdlib/syscall/go1_11_syscall_android_amd64.go index d48d449d..e5e79715 100644 --- a/stdlib/syscall/go1_11_syscall_android_amd64.go +++ b/stdlib/syscall/go1_11_syscall_android_amd64.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["syscall"] = map[string]reflect.Value{ + Symbols["syscall"] = map[string]reflect.Value{ // function, constant and variable definitions "AF_ALG": reflect.ValueOf(syscall.AF_ALG), "AF_APPLETALK": reflect.ValueOf(syscall.AF_APPLETALK), diff --git a/stdlib/syscall/go1_11_syscall_android_arm.go b/stdlib/syscall/go1_11_syscall_android_arm.go index f5880b5f..693e75b1 100644 --- a/stdlib/syscall/go1_11_syscall_android_arm.go +++ b/stdlib/syscall/go1_11_syscall_android_arm.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["syscall"] = map[string]reflect.Value{ + Symbols["syscall"] = map[string]reflect.Value{ // function, constant and variable definitions "AF_ALG": reflect.ValueOf(syscall.AF_ALG), "AF_APPLETALK": reflect.ValueOf(syscall.AF_APPLETALK), diff --git a/stdlib/syscall/go1_11_syscall_android_arm64.go b/stdlib/syscall/go1_11_syscall_android_arm64.go index 2db4b661..f11588a2 100644 --- a/stdlib/syscall/go1_11_syscall_android_arm64.go +++ b/stdlib/syscall/go1_11_syscall_android_arm64.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["syscall"] = map[string]reflect.Value{ + Symbols["syscall"] = map[string]reflect.Value{ // function, constant and variable definitions "AF_ALG": reflect.ValueOf(syscall.AF_ALG), "AF_APPLETALK": reflect.ValueOf(syscall.AF_APPLETALK), diff --git a/stdlib/syscall/go1_11_syscall_darwin_386.go b/stdlib/syscall/go1_11_syscall_darwin_386.go index 351d27ba..7a651e8a 100644 --- a/stdlib/syscall/go1_11_syscall_darwin_386.go +++ b/stdlib/syscall/go1_11_syscall_darwin_386.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["syscall"] = map[string]reflect.Value{ + Symbols["syscall"] = map[string]reflect.Value{ // function, constant and variable definitions "AF_APPLETALK": reflect.ValueOf(syscall.AF_APPLETALK), "AF_CCITT": reflect.ValueOf(syscall.AF_CCITT), diff --git a/stdlib/syscall/go1_11_syscall_darwin_amd64.go b/stdlib/syscall/go1_11_syscall_darwin_amd64.go index 351d27ba..7a651e8a 100644 --- a/stdlib/syscall/go1_11_syscall_darwin_amd64.go +++ b/stdlib/syscall/go1_11_syscall_darwin_amd64.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["syscall"] = map[string]reflect.Value{ + Symbols["syscall"] = map[string]reflect.Value{ // function, constant and variable definitions "AF_APPLETALK": reflect.ValueOf(syscall.AF_APPLETALK), "AF_CCITT": reflect.ValueOf(syscall.AF_CCITT), diff --git a/stdlib/syscall/go1_11_syscall_darwin_arm.go b/stdlib/syscall/go1_11_syscall_darwin_arm.go index 5372ef1e..67f5388b 100644 --- a/stdlib/syscall/go1_11_syscall_darwin_arm.go +++ b/stdlib/syscall/go1_11_syscall_darwin_arm.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["syscall"] = map[string]reflect.Value{ + Symbols["syscall"] = map[string]reflect.Value{ // function, constant and variable definitions "AF_APPLETALK": reflect.ValueOf(syscall.AF_APPLETALK), "AF_CCITT": reflect.ValueOf(syscall.AF_CCITT), diff --git a/stdlib/syscall/go1_11_syscall_darwin_arm64.go b/stdlib/syscall/go1_11_syscall_darwin_arm64.go index 7e7a7835..8a2084b9 100644 --- a/stdlib/syscall/go1_11_syscall_darwin_arm64.go +++ b/stdlib/syscall/go1_11_syscall_darwin_arm64.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["syscall"] = map[string]reflect.Value{ + Symbols["syscall"] = map[string]reflect.Value{ // function, constant and variable definitions "AF_APPLETALK": reflect.ValueOf(syscall.AF_APPLETALK), "AF_CCITT": reflect.ValueOf(syscall.AF_CCITT), diff --git a/stdlib/syscall/go1_11_syscall_dragonfly_amd64.go b/stdlib/syscall/go1_11_syscall_dragonfly_amd64.go index 201bb01a..6f9c9ec1 100644 --- a/stdlib/syscall/go1_11_syscall_dragonfly_amd64.go +++ b/stdlib/syscall/go1_11_syscall_dragonfly_amd64.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["syscall"] = map[string]reflect.Value{ + Symbols["syscall"] = map[string]reflect.Value{ // function, constant and variable definitions "AF_APPLETALK": reflect.ValueOf(syscall.AF_APPLETALK), "AF_ATM": reflect.ValueOf(syscall.AF_ATM), diff --git a/stdlib/syscall/go1_11_syscall_freebsd_386.go b/stdlib/syscall/go1_11_syscall_freebsd_386.go index e416066f..6815921b 100644 --- a/stdlib/syscall/go1_11_syscall_freebsd_386.go +++ b/stdlib/syscall/go1_11_syscall_freebsd_386.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["syscall"] = map[string]reflect.Value{ + Symbols["syscall"] = map[string]reflect.Value{ // function, constant and variable definitions "AF_APPLETALK": reflect.ValueOf(syscall.AF_APPLETALK), "AF_ARP": reflect.ValueOf(syscall.AF_ARP), diff --git a/stdlib/syscall/go1_11_syscall_freebsd_amd64.go b/stdlib/syscall/go1_11_syscall_freebsd_amd64.go index 1981d0ad..f3c285e5 100644 --- a/stdlib/syscall/go1_11_syscall_freebsd_amd64.go +++ b/stdlib/syscall/go1_11_syscall_freebsd_amd64.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["syscall"] = map[string]reflect.Value{ + Symbols["syscall"] = map[string]reflect.Value{ // function, constant and variable definitions "AF_APPLETALK": reflect.ValueOf(syscall.AF_APPLETALK), "AF_ARP": reflect.ValueOf(syscall.AF_ARP), diff --git a/stdlib/syscall/go1_11_syscall_freebsd_arm.go b/stdlib/syscall/go1_11_syscall_freebsd_arm.go index e416066f..6815921b 100644 --- a/stdlib/syscall/go1_11_syscall_freebsd_arm.go +++ b/stdlib/syscall/go1_11_syscall_freebsd_arm.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["syscall"] = map[string]reflect.Value{ + Symbols["syscall"] = map[string]reflect.Value{ // function, constant and variable definitions "AF_APPLETALK": reflect.ValueOf(syscall.AF_APPLETALK), "AF_ARP": reflect.ValueOf(syscall.AF_ARP), diff --git a/stdlib/syscall/go1_11_syscall_js_wasm.go b/stdlib/syscall/go1_11_syscall_js_wasm.go index 8aca593f..5c63f6bd 100644 --- a/stdlib/syscall/go1_11_syscall_js_wasm.go +++ b/stdlib/syscall/go1_11_syscall_js_wasm.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["syscall"] = map[string]reflect.Value{ + Symbols["syscall"] = map[string]reflect.Value{ // function, constant and variable definitions "AF_INET": reflect.ValueOf(syscall.AF_INET), "AF_INET6": reflect.ValueOf(syscall.AF_INET6), diff --git a/stdlib/syscall/go1_11_syscall_linux_386.go b/stdlib/syscall/go1_11_syscall_linux_386.go index a0b8e4a9..3d48f28c 100644 --- a/stdlib/syscall/go1_11_syscall_linux_386.go +++ b/stdlib/syscall/go1_11_syscall_linux_386.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["syscall"] = map[string]reflect.Value{ + Symbols["syscall"] = map[string]reflect.Value{ // function, constant and variable definitions "AF_ALG": reflect.ValueOf(syscall.AF_ALG), "AF_APPLETALK": reflect.ValueOf(syscall.AF_APPLETALK), diff --git a/stdlib/syscall/go1_11_syscall_linux_amd64.go b/stdlib/syscall/go1_11_syscall_linux_amd64.go index d48d449d..e5e79715 100644 --- a/stdlib/syscall/go1_11_syscall_linux_amd64.go +++ b/stdlib/syscall/go1_11_syscall_linux_amd64.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["syscall"] = map[string]reflect.Value{ + Symbols["syscall"] = map[string]reflect.Value{ // function, constant and variable definitions "AF_ALG": reflect.ValueOf(syscall.AF_ALG), "AF_APPLETALK": reflect.ValueOf(syscall.AF_APPLETALK), diff --git a/stdlib/syscall/go1_11_syscall_linux_arm.go b/stdlib/syscall/go1_11_syscall_linux_arm.go index f5880b5f..693e75b1 100644 --- a/stdlib/syscall/go1_11_syscall_linux_arm.go +++ b/stdlib/syscall/go1_11_syscall_linux_arm.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["syscall"] = map[string]reflect.Value{ + Symbols["syscall"] = map[string]reflect.Value{ // function, constant and variable definitions "AF_ALG": reflect.ValueOf(syscall.AF_ALG), "AF_APPLETALK": reflect.ValueOf(syscall.AF_APPLETALK), diff --git a/stdlib/syscall/go1_11_syscall_linux_arm64.go b/stdlib/syscall/go1_11_syscall_linux_arm64.go index 2db4b661..f11588a2 100644 --- a/stdlib/syscall/go1_11_syscall_linux_arm64.go +++ b/stdlib/syscall/go1_11_syscall_linux_arm64.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["syscall"] = map[string]reflect.Value{ + Symbols["syscall"] = map[string]reflect.Value{ // function, constant and variable definitions "AF_ALG": reflect.ValueOf(syscall.AF_ALG), "AF_APPLETALK": reflect.ValueOf(syscall.AF_APPLETALK), diff --git a/stdlib/syscall/go1_11_syscall_linux_mips.go b/stdlib/syscall/go1_11_syscall_linux_mips.go index 369bf07b..97f752b3 100644 --- a/stdlib/syscall/go1_11_syscall_linux_mips.go +++ b/stdlib/syscall/go1_11_syscall_linux_mips.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["syscall"] = map[string]reflect.Value{ + Symbols["syscall"] = map[string]reflect.Value{ // function, constant and variable definitions "AF_ALG": reflect.ValueOf(syscall.AF_ALG), "AF_APPLETALK": reflect.ValueOf(syscall.AF_APPLETALK), diff --git a/stdlib/syscall/go1_11_syscall_linux_mips64.go b/stdlib/syscall/go1_11_syscall_linux_mips64.go index 6baaee4b..66db9a46 100644 --- a/stdlib/syscall/go1_11_syscall_linux_mips64.go +++ b/stdlib/syscall/go1_11_syscall_linux_mips64.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["syscall"] = map[string]reflect.Value{ + Symbols["syscall"] = map[string]reflect.Value{ // function, constant and variable definitions "AF_ALG": reflect.ValueOf(syscall.AF_ALG), "AF_APPLETALK": reflect.ValueOf(syscall.AF_APPLETALK), diff --git a/stdlib/syscall/go1_11_syscall_linux_mips64le.go b/stdlib/syscall/go1_11_syscall_linux_mips64le.go index 6baaee4b..66db9a46 100644 --- a/stdlib/syscall/go1_11_syscall_linux_mips64le.go +++ b/stdlib/syscall/go1_11_syscall_linux_mips64le.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["syscall"] = map[string]reflect.Value{ + Symbols["syscall"] = map[string]reflect.Value{ // function, constant and variable definitions "AF_ALG": reflect.ValueOf(syscall.AF_ALG), "AF_APPLETALK": reflect.ValueOf(syscall.AF_APPLETALK), diff --git a/stdlib/syscall/go1_11_syscall_linux_mipsle.go b/stdlib/syscall/go1_11_syscall_linux_mipsle.go index 369bf07b..97f752b3 100644 --- a/stdlib/syscall/go1_11_syscall_linux_mipsle.go +++ b/stdlib/syscall/go1_11_syscall_linux_mipsle.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["syscall"] = map[string]reflect.Value{ + Symbols["syscall"] = map[string]reflect.Value{ // function, constant and variable definitions "AF_ALG": reflect.ValueOf(syscall.AF_ALG), "AF_APPLETALK": reflect.ValueOf(syscall.AF_APPLETALK), diff --git a/stdlib/syscall/go1_11_syscall_linux_ppc64.go b/stdlib/syscall/go1_11_syscall_linux_ppc64.go index 75ff2a41..d66ef61c 100644 --- a/stdlib/syscall/go1_11_syscall_linux_ppc64.go +++ b/stdlib/syscall/go1_11_syscall_linux_ppc64.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["syscall"] = map[string]reflect.Value{ + Symbols["syscall"] = map[string]reflect.Value{ // function, constant and variable definitions "AF_ALG": reflect.ValueOf(syscall.AF_ALG), "AF_APPLETALK": reflect.ValueOf(syscall.AF_APPLETALK), diff --git a/stdlib/syscall/go1_11_syscall_linux_ppc64le.go b/stdlib/syscall/go1_11_syscall_linux_ppc64le.go index 12dfdb84..a24ad5c5 100644 --- a/stdlib/syscall/go1_11_syscall_linux_ppc64le.go +++ b/stdlib/syscall/go1_11_syscall_linux_ppc64le.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["syscall"] = map[string]reflect.Value{ + Symbols["syscall"] = map[string]reflect.Value{ // function, constant and variable definitions "AF_ALG": reflect.ValueOf(syscall.AF_ALG), "AF_APPLETALK": reflect.ValueOf(syscall.AF_APPLETALK), diff --git a/stdlib/syscall/go1_11_syscall_linux_s390x.go b/stdlib/syscall/go1_11_syscall_linux_s390x.go index f5d4f80e..0ec8615e 100644 --- a/stdlib/syscall/go1_11_syscall_linux_s390x.go +++ b/stdlib/syscall/go1_11_syscall_linux_s390x.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["syscall"] = map[string]reflect.Value{ + Symbols["syscall"] = map[string]reflect.Value{ // function, constant and variable definitions "AF_ALG": reflect.ValueOf(syscall.AF_ALG), "AF_APPLETALK": reflect.ValueOf(syscall.AF_APPLETALK), diff --git a/stdlib/syscall/go1_11_syscall_nacl_386.go b/stdlib/syscall/go1_11_syscall_nacl_386.go index 1fdea29c..5712f2fa 100644 --- a/stdlib/syscall/go1_11_syscall_nacl_386.go +++ b/stdlib/syscall/go1_11_syscall_nacl_386.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["syscall"] = map[string]reflect.Value{ + Symbols["syscall"] = map[string]reflect.Value{ // function, constant and variable definitions "AF_INET": reflect.ValueOf(syscall.AF_INET), "AF_INET6": reflect.ValueOf(syscall.AF_INET6), diff --git a/stdlib/syscall/go1_11_syscall_nacl_amd64p32.go b/stdlib/syscall/go1_11_syscall_nacl_amd64p32.go index 1fdea29c..5712f2fa 100644 --- a/stdlib/syscall/go1_11_syscall_nacl_amd64p32.go +++ b/stdlib/syscall/go1_11_syscall_nacl_amd64p32.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["syscall"] = map[string]reflect.Value{ + Symbols["syscall"] = map[string]reflect.Value{ // function, constant and variable definitions "AF_INET": reflect.ValueOf(syscall.AF_INET), "AF_INET6": reflect.ValueOf(syscall.AF_INET6), diff --git a/stdlib/syscall/go1_11_syscall_nacl_arm.go b/stdlib/syscall/go1_11_syscall_nacl_arm.go index 1fdea29c..5712f2fa 100644 --- a/stdlib/syscall/go1_11_syscall_nacl_arm.go +++ b/stdlib/syscall/go1_11_syscall_nacl_arm.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["syscall"] = map[string]reflect.Value{ + Symbols["syscall"] = map[string]reflect.Value{ // function, constant and variable definitions "AF_INET": reflect.ValueOf(syscall.AF_INET), "AF_INET6": reflect.ValueOf(syscall.AF_INET6), diff --git a/stdlib/syscall/go1_11_syscall_netbsd_386.go b/stdlib/syscall/go1_11_syscall_netbsd_386.go index 3ccf0ca9..22faa54e 100644 --- a/stdlib/syscall/go1_11_syscall_netbsd_386.go +++ b/stdlib/syscall/go1_11_syscall_netbsd_386.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["syscall"] = map[string]reflect.Value{ + Symbols["syscall"] = map[string]reflect.Value{ // function, constant and variable definitions "AF_APPLETALK": reflect.ValueOf(syscall.AF_APPLETALK), "AF_ARP": reflect.ValueOf(syscall.AF_ARP), diff --git a/stdlib/syscall/go1_11_syscall_netbsd_amd64.go b/stdlib/syscall/go1_11_syscall_netbsd_amd64.go index 660547f6..47501275 100644 --- a/stdlib/syscall/go1_11_syscall_netbsd_amd64.go +++ b/stdlib/syscall/go1_11_syscall_netbsd_amd64.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["syscall"] = map[string]reflect.Value{ + Symbols["syscall"] = map[string]reflect.Value{ // function, constant and variable definitions "AF_APPLETALK": reflect.ValueOf(syscall.AF_APPLETALK), "AF_ARP": reflect.ValueOf(syscall.AF_ARP), diff --git a/stdlib/syscall/go1_11_syscall_netbsd_arm.go b/stdlib/syscall/go1_11_syscall_netbsd_arm.go index dda3152f..6968f44c 100644 --- a/stdlib/syscall/go1_11_syscall_netbsd_arm.go +++ b/stdlib/syscall/go1_11_syscall_netbsd_arm.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["syscall"] = map[string]reflect.Value{ + Symbols["syscall"] = map[string]reflect.Value{ // function, constant and variable definitions "AF_APPLETALK": reflect.ValueOf(syscall.AF_APPLETALK), "AF_ARP": reflect.ValueOf(syscall.AF_ARP), diff --git a/stdlib/syscall/go1_11_syscall_openbsd_386.go b/stdlib/syscall/go1_11_syscall_openbsd_386.go index d1804ac7..bc1b5b55 100644 --- a/stdlib/syscall/go1_11_syscall_openbsd_386.go +++ b/stdlib/syscall/go1_11_syscall_openbsd_386.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["syscall"] = map[string]reflect.Value{ + Symbols["syscall"] = map[string]reflect.Value{ // function, constant and variable definitions "AF_APPLETALK": reflect.ValueOf(syscall.AF_APPLETALK), "AF_BLUETOOTH": reflect.ValueOf(syscall.AF_BLUETOOTH), diff --git a/stdlib/syscall/go1_11_syscall_openbsd_amd64.go b/stdlib/syscall/go1_11_syscall_openbsd_amd64.go index 1d0d98e5..6fed55da 100644 --- a/stdlib/syscall/go1_11_syscall_openbsd_amd64.go +++ b/stdlib/syscall/go1_11_syscall_openbsd_amd64.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["syscall"] = map[string]reflect.Value{ + Symbols["syscall"] = map[string]reflect.Value{ // function, constant and variable definitions "AF_APPLETALK": reflect.ValueOf(syscall.AF_APPLETALK), "AF_BLUETOOTH": reflect.ValueOf(syscall.AF_BLUETOOTH), diff --git a/stdlib/syscall/go1_11_syscall_openbsd_arm.go b/stdlib/syscall/go1_11_syscall_openbsd_arm.go index 872b5098..6f8027c1 100644 --- a/stdlib/syscall/go1_11_syscall_openbsd_arm.go +++ b/stdlib/syscall/go1_11_syscall_openbsd_arm.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["syscall"] = map[string]reflect.Value{ + Symbols["syscall"] = map[string]reflect.Value{ // function, constant and variable definitions "AF_APPLETALK": reflect.ValueOf(syscall.AF_APPLETALK), "AF_BLUETOOTH": reflect.ValueOf(syscall.AF_BLUETOOTH), diff --git a/stdlib/syscall/go1_11_syscall_plan9_386.go b/stdlib/syscall/go1_11_syscall_plan9_386.go index ac0820cf..b2ff03a9 100644 --- a/stdlib/syscall/go1_11_syscall_plan9_386.go +++ b/stdlib/syscall/go1_11_syscall_plan9_386.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["syscall"] = map[string]reflect.Value{ + Symbols["syscall"] = map[string]reflect.Value{ // function, constant and variable definitions "Await": reflect.ValueOf(syscall.Await), "Bind": reflect.ValueOf(syscall.Bind), diff --git a/stdlib/syscall/go1_11_syscall_plan9_amd64.go b/stdlib/syscall/go1_11_syscall_plan9_amd64.go index ac0820cf..b2ff03a9 100644 --- a/stdlib/syscall/go1_11_syscall_plan9_amd64.go +++ b/stdlib/syscall/go1_11_syscall_plan9_amd64.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["syscall"] = map[string]reflect.Value{ + Symbols["syscall"] = map[string]reflect.Value{ // function, constant and variable definitions "Await": reflect.ValueOf(syscall.Await), "Bind": reflect.ValueOf(syscall.Bind), diff --git a/stdlib/syscall/go1_11_syscall_plan9_arm.go b/stdlib/syscall/go1_11_syscall_plan9_arm.go index ac0820cf..b2ff03a9 100644 --- a/stdlib/syscall/go1_11_syscall_plan9_arm.go +++ b/stdlib/syscall/go1_11_syscall_plan9_arm.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["syscall"] = map[string]reflect.Value{ + Symbols["syscall"] = map[string]reflect.Value{ // function, constant and variable definitions "Await": reflect.ValueOf(syscall.Await), "Bind": reflect.ValueOf(syscall.Bind), diff --git a/stdlib/syscall/go1_11_syscall_solaris_amd64.go b/stdlib/syscall/go1_11_syscall_solaris_amd64.go index 60255cdb..b9a75a88 100644 --- a/stdlib/syscall/go1_11_syscall_solaris_amd64.go +++ b/stdlib/syscall/go1_11_syscall_solaris_amd64.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["syscall"] = map[string]reflect.Value{ + Symbols["syscall"] = map[string]reflect.Value{ // function, constant and variable definitions "AF_802": reflect.ValueOf(syscall.AF_802), "AF_APPLETALK": reflect.ValueOf(syscall.AF_APPLETALK), diff --git a/stdlib/syscall/go1_11_syscall_windows_386.go b/stdlib/syscall/go1_11_syscall_windows_386.go index d77e083a..e76e099e 100644 --- a/stdlib/syscall/go1_11_syscall_windows_386.go +++ b/stdlib/syscall/go1_11_syscall_windows_386.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["syscall"] = map[string]reflect.Value{ + Symbols["syscall"] = map[string]reflect.Value{ // function, constant and variable definitions "AF_INET": reflect.ValueOf(syscall.AF_INET), "AF_INET6": reflect.ValueOf(syscall.AF_INET6), diff --git a/stdlib/syscall/go1_11_syscall_windows_amd64.go b/stdlib/syscall/go1_11_syscall_windows_amd64.go index 98982978..c541885e 100644 --- a/stdlib/syscall/go1_11_syscall_windows_amd64.go +++ b/stdlib/syscall/go1_11_syscall_windows_amd64.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["syscall"] = map[string]reflect.Value{ + Symbols["syscall"] = map[string]reflect.Value{ // function, constant and variable definitions "AF_INET": reflect.ValueOf(syscall.AF_INET), "AF_INET6": reflect.ValueOf(syscall.AF_INET6), diff --git a/stdlib/syscall/go1_12_syscall_darwin_amd64.go b/stdlib/syscall/go1_12_syscall_darwin_amd64.go index dda4fae2..0e8d632c 100644 --- a/stdlib/syscall/go1_12_syscall_darwin_amd64.go +++ b/stdlib/syscall/go1_12_syscall_darwin_amd64.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["syscall"] = map[string]reflect.Value{ + Symbols["syscall"] = map[string]reflect.Value{ // function, constant and variable definitions "AF_APPLETALK": reflect.ValueOf(syscall.AF_APPLETALK), "AF_CCITT": reflect.ValueOf(syscall.AF_CCITT), diff --git a/stdlib/syscall/syscall.go b/stdlib/syscall/syscall.go index 09a8d71e..a1f7e210 100644 --- a/stdlib/syscall/syscall.go +++ b/stdlib/syscall/syscall.go @@ -2,10 +2,7 @@ package syscall import "reflect" -// Value stores the map of stdlib values per package -var Value = map[string]map[string]reflect.Value{} - -// Wrapper stores the map of stdlib interface wrapper types per package -var Wrapper = map[string]map[string]reflect.Type{} +// Symbols stores the map of syscall package symbols +var Symbols = map[string]map[string]reflect.Value{} //go:generate ../../cmd/goexports/goexports syscall diff --git a/stdlib/unsafe/go1_11_unsafe.go b/stdlib/unsafe/go1_11_unsafe.go index d44d6a4a..f4551776 100644 --- a/stdlib/unsafe/go1_11_unsafe.go +++ b/stdlib/unsafe/go1_11_unsafe.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["unsafe"] = map[string]reflect.Value{ + Symbols["unsafe"] = map[string]reflect.Value{ // function, constant and variable definitions // type definitions diff --git a/stdlib/unsafe/go1_12_unsafe.go b/stdlib/unsafe/go1_12_unsafe.go index ffe65f04..e0b5cb49 100644 --- a/stdlib/unsafe/go1_12_unsafe.go +++ b/stdlib/unsafe/go1_12_unsafe.go @@ -10,7 +10,7 @@ import ( ) func init() { - Value["unsafe"] = map[string]reflect.Value{ + Symbols["unsafe"] = map[string]reflect.Value{ // function, constant and variable definitions // type definitions diff --git a/stdlib/unsafe/unsafe.go b/stdlib/unsafe/unsafe.go index f071d412..554eb3fc 100644 --- a/stdlib/unsafe/unsafe.go +++ b/stdlib/unsafe/unsafe.go @@ -2,10 +2,7 @@ package unsafe import "reflect" -// Value stores the map of stdlib values per package -var Value = map[string]map[string]reflect.Value{} - -// Wrapper stores the map of stdlib interface wrapper types per package -var Wrapper = map[string]map[string]reflect.Type{} +// Symbols stores the map of unsafe package symbols +var Symbols = map[string]map[string]reflect.Value{} //go:generate ../../cmd/goexports/goexports unsafe diff --git a/yaegi.go b/yaegi.go index 37634148..a175fad9 100644 --- a/yaegi.go +++ b/yaegi.go @@ -34,8 +34,8 @@ func main() { log.SetFlags(log.Lshortfile) i := interp.New() - i.Use(stdlib.Value) - i.Use(interp.ExportValue) + i.Use(stdlib.Symbols) + i.Use(interp.Symbols) if astDot { interp.AstDot(i) }