github.com/goplus/gossa@v0.3.25/pkg/encoding/csv/go115_export.go (about)

     1  // export by github.com/goplus/gossa/cmd/qexp
     2  
     3  //+build go1.15,!go1.16
     4  
     5  package csv
     6  
     7  import (
     8  	q "encoding/csv"
     9  
    10  	"reflect"
    11  
    12  	"github.com/goplus/gossa"
    13  )
    14  
    15  func init() {
    16  	gossa.RegisterPackage(&gossa.Package{
    17  		Name: "csv",
    18  		Path: "encoding/csv",
    19  		Deps: map[string]string{
    20  			"bufio":        "bufio",
    21  			"bytes":        "bytes",
    22  			"errors":       "errors",
    23  			"fmt":          "fmt",
    24  			"io":           "io",
    25  			"strings":      "strings",
    26  			"unicode":      "unicode",
    27  			"unicode/utf8": "utf8",
    28  		},
    29  		Interfaces: map[string]reflect.Type{},
    30  		NamedTypes: map[string]gossa.NamedType{
    31  			"ParseError": {reflect.TypeOf((*q.ParseError)(nil)).Elem(), "", "Error,Unwrap"},
    32  			"Reader":     {reflect.TypeOf((*q.Reader)(nil)).Elem(), "", "Read,ReadAll,readLine,readRecord"},
    33  			"Writer":     {reflect.TypeOf((*q.Writer)(nil)).Elem(), "", "Error,Flush,Write,WriteAll,fieldNeedsQuotes"},
    34  		},
    35  		AliasTypes: map[string]reflect.Type{},
    36  		Vars: map[string]reflect.Value{
    37  			"ErrBareQuote":     reflect.ValueOf(&q.ErrBareQuote),
    38  			"ErrFieldCount":    reflect.ValueOf(&q.ErrFieldCount),
    39  			"ErrQuote":         reflect.ValueOf(&q.ErrQuote),
    40  			"ErrTrailingComma": reflect.ValueOf(&q.ErrTrailingComma),
    41  		},
    42  		Funcs: map[string]reflect.Value{
    43  			"NewReader": reflect.ValueOf(q.NewReader),
    44  			"NewWriter": reflect.ValueOf(q.NewWriter),
    45  		},
    46  		TypedConsts:   map[string]gossa.TypedConst{},
    47  		UntypedConsts: map[string]gossa.UntypedConst{},
    48  	})
    49  }