github.com/goplus/igop@v0.25.0/pkg/io/fs/go117_export.go (about) 1 // export by github.com/goplus/igop/cmd/qexp 2 3 //go:build go1.17 && !go1.18 4 // +build go1.17,!go1.18 5 6 package fs 7 8 import ( 9 q "io/fs" 10 11 "go/constant" 12 "reflect" 13 14 "github.com/goplus/igop" 15 ) 16 17 func init() { 18 igop.RegisterPackage(&igop.Package{ 19 Name: "fs", 20 Path: "io/fs", 21 Deps: map[string]string{ 22 "errors": "errors", 23 "internal/oserror": "oserror", 24 "io": "io", 25 "path": "path", 26 "sort": "sort", 27 "time": "time", 28 "unicode/utf8": "utf8", 29 }, 30 Interfaces: map[string]reflect.Type{ 31 "DirEntry": reflect.TypeOf((*q.DirEntry)(nil)).Elem(), 32 "FS": reflect.TypeOf((*q.FS)(nil)).Elem(), 33 "File": reflect.TypeOf((*q.File)(nil)).Elem(), 34 "FileInfo": reflect.TypeOf((*q.FileInfo)(nil)).Elem(), 35 "GlobFS": reflect.TypeOf((*q.GlobFS)(nil)).Elem(), 36 "ReadDirFS": reflect.TypeOf((*q.ReadDirFS)(nil)).Elem(), 37 "ReadDirFile": reflect.TypeOf((*q.ReadDirFile)(nil)).Elem(), 38 "ReadFileFS": reflect.TypeOf((*q.ReadFileFS)(nil)).Elem(), 39 "StatFS": reflect.TypeOf((*q.StatFS)(nil)).Elem(), 40 "SubFS": reflect.TypeOf((*q.SubFS)(nil)).Elem(), 41 }, 42 NamedTypes: map[string]reflect.Type{ 43 "FileMode": reflect.TypeOf((*q.FileMode)(nil)).Elem(), 44 "PathError": reflect.TypeOf((*q.PathError)(nil)).Elem(), 45 "WalkDirFunc": reflect.TypeOf((*q.WalkDirFunc)(nil)).Elem(), 46 }, 47 AliasTypes: map[string]reflect.Type{}, 48 Vars: map[string]reflect.Value{ 49 "ErrClosed": reflect.ValueOf(&q.ErrClosed), 50 "ErrExist": reflect.ValueOf(&q.ErrExist), 51 "ErrInvalid": reflect.ValueOf(&q.ErrInvalid), 52 "ErrNotExist": reflect.ValueOf(&q.ErrNotExist), 53 "ErrPermission": reflect.ValueOf(&q.ErrPermission), 54 "SkipDir": reflect.ValueOf(&q.SkipDir), 55 }, 56 Funcs: map[string]reflect.Value{ 57 "FileInfoToDirEntry": reflect.ValueOf(q.FileInfoToDirEntry), 58 "Glob": reflect.ValueOf(q.Glob), 59 "ReadDir": reflect.ValueOf(q.ReadDir), 60 "ReadFile": reflect.ValueOf(q.ReadFile), 61 "Stat": reflect.ValueOf(q.Stat), 62 "Sub": reflect.ValueOf(q.Sub), 63 "ValidPath": reflect.ValueOf(q.ValidPath), 64 "WalkDir": reflect.ValueOf(q.WalkDir), 65 }, 66 TypedConsts: map[string]igop.TypedConst{ 67 "ModeAppend": {reflect.TypeOf(q.ModeAppend), constant.MakeInt64(int64(q.ModeAppend))}, 68 "ModeCharDevice": {reflect.TypeOf(q.ModeCharDevice), constant.MakeInt64(int64(q.ModeCharDevice))}, 69 "ModeDevice": {reflect.TypeOf(q.ModeDevice), constant.MakeInt64(int64(q.ModeDevice))}, 70 "ModeDir": {reflect.TypeOf(q.ModeDir), constant.MakeInt64(int64(q.ModeDir))}, 71 "ModeExclusive": {reflect.TypeOf(q.ModeExclusive), constant.MakeInt64(int64(q.ModeExclusive))}, 72 "ModeIrregular": {reflect.TypeOf(q.ModeIrregular), constant.MakeInt64(int64(q.ModeIrregular))}, 73 "ModeNamedPipe": {reflect.TypeOf(q.ModeNamedPipe), constant.MakeInt64(int64(q.ModeNamedPipe))}, 74 "ModePerm": {reflect.TypeOf(q.ModePerm), constant.MakeInt64(int64(q.ModePerm))}, 75 "ModeSetgid": {reflect.TypeOf(q.ModeSetgid), constant.MakeInt64(int64(q.ModeSetgid))}, 76 "ModeSetuid": {reflect.TypeOf(q.ModeSetuid), constant.MakeInt64(int64(q.ModeSetuid))}, 77 "ModeSocket": {reflect.TypeOf(q.ModeSocket), constant.MakeInt64(int64(q.ModeSocket))}, 78 "ModeSticky": {reflect.TypeOf(q.ModeSticky), constant.MakeInt64(int64(q.ModeSticky))}, 79 "ModeSymlink": {reflect.TypeOf(q.ModeSymlink), constant.MakeInt64(int64(q.ModeSymlink))}, 80 "ModeTemporary": {reflect.TypeOf(q.ModeTemporary), constant.MakeInt64(int64(q.ModeTemporary))}, 81 "ModeType": {reflect.TypeOf(q.ModeType), constant.MakeInt64(int64(q.ModeType))}, 82 }, 83 UntypedConsts: map[string]igop.UntypedConst{}, 84 }) 85 }