github.com/goplus/igop@v0.25.0/pkg/io/fs/go116_export.go (about)

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