github.com/goplus/igop@v0.25.0/pkg/encoding/csv/go119_export.go (about)

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