github.com/goplus/igop@v0.25.0/pkg/io/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 io 7 8 import ( 9 q "io" 10 11 "go/constant" 12 "reflect" 13 14 "github.com/goplus/igop" 15 ) 16 17 func init() { 18 igop.RegisterPackage(&igop.Package{ 19 Name: "io", 20 Path: "io", 21 Deps: map[string]string{ 22 "errors": "errors", 23 "sync": "sync", 24 }, 25 Interfaces: map[string]reflect.Type{ 26 "ByteReader": reflect.TypeOf((*q.ByteReader)(nil)).Elem(), 27 "ByteScanner": reflect.TypeOf((*q.ByteScanner)(nil)).Elem(), 28 "ByteWriter": reflect.TypeOf((*q.ByteWriter)(nil)).Elem(), 29 "Closer": reflect.TypeOf((*q.Closer)(nil)).Elem(), 30 "ReadCloser": reflect.TypeOf((*q.ReadCloser)(nil)).Elem(), 31 "ReadSeekCloser": reflect.TypeOf((*q.ReadSeekCloser)(nil)).Elem(), 32 "ReadSeeker": reflect.TypeOf((*q.ReadSeeker)(nil)).Elem(), 33 "ReadWriteCloser": reflect.TypeOf((*q.ReadWriteCloser)(nil)).Elem(), 34 "ReadWriteSeeker": reflect.TypeOf((*q.ReadWriteSeeker)(nil)).Elem(), 35 "ReadWriter": reflect.TypeOf((*q.ReadWriter)(nil)).Elem(), 36 "Reader": reflect.TypeOf((*q.Reader)(nil)).Elem(), 37 "ReaderAt": reflect.TypeOf((*q.ReaderAt)(nil)).Elem(), 38 "ReaderFrom": reflect.TypeOf((*q.ReaderFrom)(nil)).Elem(), 39 "RuneReader": reflect.TypeOf((*q.RuneReader)(nil)).Elem(), 40 "RuneScanner": reflect.TypeOf((*q.RuneScanner)(nil)).Elem(), 41 "Seeker": reflect.TypeOf((*q.Seeker)(nil)).Elem(), 42 "StringWriter": reflect.TypeOf((*q.StringWriter)(nil)).Elem(), 43 "WriteCloser": reflect.TypeOf((*q.WriteCloser)(nil)).Elem(), 44 "WriteSeeker": reflect.TypeOf((*q.WriteSeeker)(nil)).Elem(), 45 "Writer": reflect.TypeOf((*q.Writer)(nil)).Elem(), 46 "WriterAt": reflect.TypeOf((*q.WriterAt)(nil)).Elem(), 47 "WriterTo": reflect.TypeOf((*q.WriterTo)(nil)).Elem(), 48 }, 49 NamedTypes: map[string]reflect.Type{ 50 "LimitedReader": reflect.TypeOf((*q.LimitedReader)(nil)).Elem(), 51 "OffsetWriter": reflect.TypeOf((*q.OffsetWriter)(nil)).Elem(), 52 "PipeReader": reflect.TypeOf((*q.PipeReader)(nil)).Elem(), 53 "PipeWriter": reflect.TypeOf((*q.PipeWriter)(nil)).Elem(), 54 "SectionReader": reflect.TypeOf((*q.SectionReader)(nil)).Elem(), 55 }, 56 AliasTypes: map[string]reflect.Type{}, 57 Vars: map[string]reflect.Value{ 58 "Discard": reflect.ValueOf(&q.Discard), 59 "EOF": reflect.ValueOf(&q.EOF), 60 "ErrClosedPipe": reflect.ValueOf(&q.ErrClosedPipe), 61 "ErrNoProgress": reflect.ValueOf(&q.ErrNoProgress), 62 "ErrShortBuffer": reflect.ValueOf(&q.ErrShortBuffer), 63 "ErrShortWrite": reflect.ValueOf(&q.ErrShortWrite), 64 "ErrUnexpectedEOF": reflect.ValueOf(&q.ErrUnexpectedEOF), 65 }, 66 Funcs: map[string]reflect.Value{ 67 "Copy": reflect.ValueOf(q.Copy), 68 "CopyBuffer": reflect.ValueOf(q.CopyBuffer), 69 "CopyN": reflect.ValueOf(q.CopyN), 70 "LimitReader": reflect.ValueOf(q.LimitReader), 71 "MultiReader": reflect.ValueOf(q.MultiReader), 72 "MultiWriter": reflect.ValueOf(q.MultiWriter), 73 "NewOffsetWriter": reflect.ValueOf(q.NewOffsetWriter), 74 "NewSectionReader": reflect.ValueOf(q.NewSectionReader), 75 "NopCloser": reflect.ValueOf(q.NopCloser), 76 "Pipe": reflect.ValueOf(q.Pipe), 77 "ReadAll": reflect.ValueOf(q.ReadAll), 78 "ReadAtLeast": reflect.ValueOf(q.ReadAtLeast), 79 "ReadFull": reflect.ValueOf(q.ReadFull), 80 "TeeReader": reflect.ValueOf(q.TeeReader), 81 "WriteString": reflect.ValueOf(q.WriteString), 82 }, 83 TypedConsts: map[string]igop.TypedConst{}, 84 UntypedConsts: map[string]igop.UntypedConst{ 85 "SeekCurrent": {"untyped int", constant.MakeInt64(int64(q.SeekCurrent))}, 86 "SeekEnd": {"untyped int", constant.MakeInt64(int64(q.SeekEnd))}, 87 "SeekStart": {"untyped int", constant.MakeInt64(int64(q.SeekStart))}, 88 }, 89 }) 90 }