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

     1  // export by github.com/goplus/gossa/cmd/qexp
     2  
     3  //+build go1.15,!go1.16
     4  
     5  package strconv
     6  
     7  import (
     8  	q "strconv"
     9  
    10  	"go/constant"
    11  	"reflect"
    12  
    13  	"github.com/goplus/gossa"
    14  )
    15  
    16  func init() {
    17  	gossa.RegisterPackage(&gossa.Package{
    18  		Name: "strconv",
    19  		Path: "strconv",
    20  		Deps: map[string]string{
    21  			"errors":           "errors",
    22  			"internal/bytealg": "bytealg",
    23  			"math":             "math",
    24  			"math/bits":        "bits",
    25  			"unicode/utf8":     "utf8",
    26  		},
    27  		Interfaces: map[string]reflect.Type{},
    28  		NamedTypes: map[string]gossa.NamedType{
    29  			"NumError": {reflect.TypeOf((*q.NumError)(nil)).Elem(), "", "Error,Unwrap"},
    30  		},
    31  		AliasTypes: map[string]reflect.Type{},
    32  		Vars: map[string]reflect.Value{
    33  			"ErrRange":  reflect.ValueOf(&q.ErrRange),
    34  			"ErrSyntax": reflect.ValueOf(&q.ErrSyntax),
    35  		},
    36  		Funcs: map[string]reflect.Value{
    37  			"AppendBool":               reflect.ValueOf(q.AppendBool),
    38  			"AppendFloat":              reflect.ValueOf(q.AppendFloat),
    39  			"AppendInt":                reflect.ValueOf(q.AppendInt),
    40  			"AppendQuote":              reflect.ValueOf(q.AppendQuote),
    41  			"AppendQuoteRune":          reflect.ValueOf(q.AppendQuoteRune),
    42  			"AppendQuoteRuneToASCII":   reflect.ValueOf(q.AppendQuoteRuneToASCII),
    43  			"AppendQuoteRuneToGraphic": reflect.ValueOf(q.AppendQuoteRuneToGraphic),
    44  			"AppendQuoteToASCII":       reflect.ValueOf(q.AppendQuoteToASCII),
    45  			"AppendQuoteToGraphic":     reflect.ValueOf(q.AppendQuoteToGraphic),
    46  			"AppendUint":               reflect.ValueOf(q.AppendUint),
    47  			"Atoi":                     reflect.ValueOf(q.Atoi),
    48  			"CanBackquote":             reflect.ValueOf(q.CanBackquote),
    49  			"FormatBool":               reflect.ValueOf(q.FormatBool),
    50  			"FormatComplex":            reflect.ValueOf(q.FormatComplex),
    51  			"FormatFloat":              reflect.ValueOf(q.FormatFloat),
    52  			"FormatInt":                reflect.ValueOf(q.FormatInt),
    53  			"FormatUint":               reflect.ValueOf(q.FormatUint),
    54  			"IsGraphic":                reflect.ValueOf(q.IsGraphic),
    55  			"IsPrint":                  reflect.ValueOf(q.IsPrint),
    56  			"Itoa":                     reflect.ValueOf(q.Itoa),
    57  			"ParseBool":                reflect.ValueOf(q.ParseBool),
    58  			"ParseComplex":             reflect.ValueOf(q.ParseComplex),
    59  			"ParseFloat":               reflect.ValueOf(q.ParseFloat),
    60  			"ParseInt":                 reflect.ValueOf(q.ParseInt),
    61  			"ParseUint":                reflect.ValueOf(q.ParseUint),
    62  			"Quote":                    reflect.ValueOf(q.Quote),
    63  			"QuoteRune":                reflect.ValueOf(q.QuoteRune),
    64  			"QuoteRuneToASCII":         reflect.ValueOf(q.QuoteRuneToASCII),
    65  			"QuoteRuneToGraphic":       reflect.ValueOf(q.QuoteRuneToGraphic),
    66  			"QuoteToASCII":             reflect.ValueOf(q.QuoteToASCII),
    67  			"QuoteToGraphic":           reflect.ValueOf(q.QuoteToGraphic),
    68  			"Unquote":                  reflect.ValueOf(q.Unquote),
    69  			"UnquoteChar":              reflect.ValueOf(q.UnquoteChar),
    70  		},
    71  		TypedConsts: map[string]gossa.TypedConst{},
    72  		UntypedConsts: map[string]gossa.UntypedConst{
    73  			"IntSize": {"untyped int", constant.MakeInt64(int64(q.IntSize))},
    74  		},
    75  	})
    76  }