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