github.com/goplus/gossa@v0.3.25/pkg/bufio/go117_export.go (about) 1 // export by github.com/goplus/gossa/cmd/qexp 2 3 //go:build go1.17 && !go1.18 4 // +build go1.17,!go1.18 5 6 package bufio 7 8 import ( 9 q "bufio" 10 11 "go/constant" 12 "reflect" 13 14 "github.com/goplus/gossa" 15 ) 16 17 func init() { 18 gossa.RegisterPackage(&gossa.Package{ 19 Name: "bufio", 20 Path: "bufio", 21 Deps: map[string]string{ 22 "bytes": "bytes", 23 "errors": "errors", 24 "io": "io", 25 "strings": "strings", 26 "unicode/utf8": "utf8", 27 }, 28 Interfaces: map[string]reflect.Type{}, 29 NamedTypes: map[string]gossa.NamedType{ 30 "ReadWriter": {reflect.TypeOf((*q.ReadWriter)(nil)).Elem(), "", ""}, 31 "Reader": {reflect.TypeOf((*q.Reader)(nil)).Elem(), "", "Buffered,Discard,Peek,Read,ReadByte,ReadBytes,ReadLine,ReadRune,ReadSlice,ReadString,Reset,Size,UnreadByte,UnreadRune,WriteTo,collectFragments,fill,readErr,reset,writeBuf"}, 32 "Scanner": {reflect.TypeOf((*q.Scanner)(nil)).Elem(), "", "Buffer,Bytes,Err,Scan,Split,Text,advance,setErr"}, 33 "SplitFunc": {reflect.TypeOf((*q.SplitFunc)(nil)).Elem(), "", ""}, 34 "Writer": {reflect.TypeOf((*q.Writer)(nil)).Elem(), "", "Available,Buffered,Flush,ReadFrom,Reset,Size,Write,WriteByte,WriteRune,WriteString"}, 35 }, 36 AliasTypes: map[string]reflect.Type{}, 37 Vars: map[string]reflect.Value{ 38 "ErrAdvanceTooFar": reflect.ValueOf(&q.ErrAdvanceTooFar), 39 "ErrBadReadCount": reflect.ValueOf(&q.ErrBadReadCount), 40 "ErrBufferFull": reflect.ValueOf(&q.ErrBufferFull), 41 "ErrFinalToken": reflect.ValueOf(&q.ErrFinalToken), 42 "ErrInvalidUnreadByte": reflect.ValueOf(&q.ErrInvalidUnreadByte), 43 "ErrInvalidUnreadRune": reflect.ValueOf(&q.ErrInvalidUnreadRune), 44 "ErrNegativeAdvance": reflect.ValueOf(&q.ErrNegativeAdvance), 45 "ErrNegativeCount": reflect.ValueOf(&q.ErrNegativeCount), 46 "ErrTooLong": reflect.ValueOf(&q.ErrTooLong), 47 }, 48 Funcs: map[string]reflect.Value{ 49 "NewReadWriter": reflect.ValueOf(q.NewReadWriter), 50 "NewReader": reflect.ValueOf(q.NewReader), 51 "NewReaderSize": reflect.ValueOf(q.NewReaderSize), 52 "NewScanner": reflect.ValueOf(q.NewScanner), 53 "NewWriter": reflect.ValueOf(q.NewWriter), 54 "NewWriterSize": reflect.ValueOf(q.NewWriterSize), 55 "ScanBytes": reflect.ValueOf(q.ScanBytes), 56 "ScanLines": reflect.ValueOf(q.ScanLines), 57 "ScanRunes": reflect.ValueOf(q.ScanRunes), 58 "ScanWords": reflect.ValueOf(q.ScanWords), 59 }, 60 TypedConsts: map[string]gossa.TypedConst{}, 61 UntypedConsts: map[string]gossa.UntypedConst{ 62 "MaxScanTokenSize": {"untyped int", constant.MakeInt64(int64(q.MaxScanTokenSize))}, 63 }, 64 }) 65 }