github.com/goplus/gossa@v0.3.25/pkg/expvar/go117_export.go (about) 1 // export by github.com/goplus/gossa/cmd/qexp 2 3 //go:build go1.17 && !go1.18 4 // +build go1.17,!go1.18 5 6 package expvar 7 8 import ( 9 q "expvar" 10 11 "reflect" 12 13 "github.com/goplus/gossa" 14 ) 15 16 func init() { 17 gossa.RegisterPackage(&gossa.Package{ 18 Name: "expvar", 19 Path: "expvar", 20 Deps: map[string]string{ 21 "encoding/json": "json", 22 "fmt": "fmt", 23 "log": "log", 24 "math": "math", 25 "net/http": "http", 26 "os": "os", 27 "runtime": "runtime", 28 "sort": "sort", 29 "strconv": "strconv", 30 "strings": "strings", 31 "sync": "sync", 32 "sync/atomic": "atomic", 33 }, 34 Interfaces: map[string]reflect.Type{ 35 "Var": reflect.TypeOf((*q.Var)(nil)).Elem(), 36 }, 37 NamedTypes: map[string]gossa.NamedType{ 38 "Float": {reflect.TypeOf((*q.Float)(nil)).Elem(), "", "Add,Set,String,Value"}, 39 "Func": {reflect.TypeOf((*q.Func)(nil)).Elem(), "String,Value", ""}, 40 "Int": {reflect.TypeOf((*q.Int)(nil)).Elem(), "", "Add,Set,String,Value"}, 41 "KeyValue": {reflect.TypeOf((*q.KeyValue)(nil)).Elem(), "", ""}, 42 "Map": {reflect.TypeOf((*q.Map)(nil)).Elem(), "", "Add,AddFloat,Delete,Do,Get,Init,Set,String,addKey"}, 43 "String": {reflect.TypeOf((*q.String)(nil)).Elem(), "", "Set,String,Value"}, 44 }, 45 AliasTypes: map[string]reflect.Type{}, 46 Vars: map[string]reflect.Value{}, 47 Funcs: map[string]reflect.Value{ 48 "Do": reflect.ValueOf(q.Do), 49 "Get": reflect.ValueOf(q.Get), 50 "Handler": reflect.ValueOf(q.Handler), 51 "NewFloat": reflect.ValueOf(q.NewFloat), 52 "NewInt": reflect.ValueOf(q.NewInt), 53 "NewMap": reflect.ValueOf(q.NewMap), 54 "NewString": reflect.ValueOf(q.NewString), 55 "Publish": reflect.ValueOf(q.Publish), 56 }, 57 TypedConsts: map[string]gossa.TypedConst{}, 58 UntypedConsts: map[string]gossa.UntypedConst{}, 59 }) 60 }