github.com/goplus/gossa@v0.3.25/pkg/path/filepath/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 filepath 7 8 import ( 9 q "path/filepath" 10 11 "go/constant" 12 "reflect" 13 14 "github.com/goplus/gossa" 15 ) 16 17 func init() { 18 gossa.RegisterPackage(&gossa.Package{ 19 Name: "filepath", 20 Path: "path/filepath", 21 Deps: map[string]string{ 22 "errors": "errors", 23 "io/fs": "fs", 24 "os": "os", 25 "runtime": "runtime", 26 "sort": "sort", 27 "strings": "strings", 28 "syscall": "syscall", 29 "unicode/utf8": "utf8", 30 }, 31 Interfaces: map[string]reflect.Type{}, 32 NamedTypes: map[string]gossa.NamedType{ 33 "WalkFunc": {reflect.TypeOf((*q.WalkFunc)(nil)).Elem(), "", ""}, 34 }, 35 AliasTypes: map[string]reflect.Type{}, 36 Vars: map[string]reflect.Value{ 37 "ErrBadPattern": reflect.ValueOf(&q.ErrBadPattern), 38 "SkipDir": reflect.ValueOf(&q.SkipDir), 39 }, 40 Funcs: map[string]reflect.Value{ 41 "Abs": reflect.ValueOf(q.Abs), 42 "Base": reflect.ValueOf(q.Base), 43 "Clean": reflect.ValueOf(q.Clean), 44 "Dir": reflect.ValueOf(q.Dir), 45 "EvalSymlinks": reflect.ValueOf(q.EvalSymlinks), 46 "Ext": reflect.ValueOf(q.Ext), 47 "FromSlash": reflect.ValueOf(q.FromSlash), 48 "Glob": reflect.ValueOf(q.Glob), 49 "HasPrefix": reflect.ValueOf(q.HasPrefix), 50 "IsAbs": reflect.ValueOf(q.IsAbs), 51 "Join": reflect.ValueOf(q.Join), 52 "Match": reflect.ValueOf(q.Match), 53 "Rel": reflect.ValueOf(q.Rel), 54 "Split": reflect.ValueOf(q.Split), 55 "SplitList": reflect.ValueOf(q.SplitList), 56 "ToSlash": reflect.ValueOf(q.ToSlash), 57 "VolumeName": reflect.ValueOf(q.VolumeName), 58 "Walk": reflect.ValueOf(q.Walk), 59 "WalkDir": reflect.ValueOf(q.WalkDir), 60 }, 61 TypedConsts: map[string]gossa.TypedConst{}, 62 UntypedConsts: map[string]gossa.UntypedConst{ 63 "ListSeparator": {"untyped rune", constant.MakeInt64(int64(q.ListSeparator))}, 64 "Separator": {"untyped rune", constant.MakeInt64(int64(q.Separator))}, 65 }, 66 }) 67 }