github.com/goplus/gossa@v0.3.25/pkg/bufio/go114_export.go (about)

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