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

     1  // export by github.com/goplus/igop/cmd/qexp
     2  
     3  //go:build go1.21
     4  // +build go1.21
     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  			"SkipAll":       reflect.ValueOf(&q.SkipAll),
    55  			"SkipDir":       reflect.ValueOf(&q.SkipDir),
    56  		},
    57  		Funcs: map[string]reflect.Value{
    58  			"FileInfoToDirEntry": reflect.ValueOf(q.FileInfoToDirEntry),
    59  			"FormatDirEntry":     reflect.ValueOf(q.FormatDirEntry),
    60  			"FormatFileInfo":     reflect.ValueOf(q.FormatFileInfo),
    61  			"Glob":               reflect.ValueOf(q.Glob),
    62  			"ReadDir":            reflect.ValueOf(q.ReadDir),
    63  			"ReadFile":           reflect.ValueOf(q.ReadFile),
    64  			"Stat":               reflect.ValueOf(q.Stat),
    65  			"Sub":                reflect.ValueOf(q.Sub),
    66  			"ValidPath":          reflect.ValueOf(q.ValidPath),
    67  			"WalkDir":            reflect.ValueOf(q.WalkDir),
    68  		},
    69  		TypedConsts: map[string]igop.TypedConst{
    70  			"ModeAppend":     {reflect.TypeOf(q.ModeAppend), constant.MakeInt64(int64(q.ModeAppend))},
    71  			"ModeCharDevice": {reflect.TypeOf(q.ModeCharDevice), constant.MakeInt64(int64(q.ModeCharDevice))},
    72  			"ModeDevice":     {reflect.TypeOf(q.ModeDevice), constant.MakeInt64(int64(q.ModeDevice))},
    73  			"ModeDir":        {reflect.TypeOf(q.ModeDir), constant.MakeInt64(int64(q.ModeDir))},
    74  			"ModeExclusive":  {reflect.TypeOf(q.ModeExclusive), constant.MakeInt64(int64(q.ModeExclusive))},
    75  			"ModeIrregular":  {reflect.TypeOf(q.ModeIrregular), constant.MakeInt64(int64(q.ModeIrregular))},
    76  			"ModeNamedPipe":  {reflect.TypeOf(q.ModeNamedPipe), constant.MakeInt64(int64(q.ModeNamedPipe))},
    77  			"ModePerm":       {reflect.TypeOf(q.ModePerm), constant.MakeInt64(int64(q.ModePerm))},
    78  			"ModeSetgid":     {reflect.TypeOf(q.ModeSetgid), constant.MakeInt64(int64(q.ModeSetgid))},
    79  			"ModeSetuid":     {reflect.TypeOf(q.ModeSetuid), constant.MakeInt64(int64(q.ModeSetuid))},
    80  			"ModeSocket":     {reflect.TypeOf(q.ModeSocket), constant.MakeInt64(int64(q.ModeSocket))},
    81  			"ModeSticky":     {reflect.TypeOf(q.ModeSticky), constant.MakeInt64(int64(q.ModeSticky))},
    82  			"ModeSymlink":    {reflect.TypeOf(q.ModeSymlink), constant.MakeInt64(int64(q.ModeSymlink))},
    83  			"ModeTemporary":  {reflect.TypeOf(q.ModeTemporary), constant.MakeInt64(int64(q.ModeTemporary))},
    84  			"ModeType":       {reflect.TypeOf(q.ModeType), constant.MakeInt64(int64(q.ModeType))},
    85  		},
    86  		UntypedConsts: map[string]igop.UntypedConst{},
    87  	})
    88  }