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

     1  // export by github.com/goplus/gossa/cmd/qexp
     2  
     3  //+build go1.14,!go1.15
     4  
     5  package base32
     6  
     7  import (
     8  	q "encoding/base32"
     9  
    10  	"go/constant"
    11  	"reflect"
    12  
    13  	"github.com/goplus/gossa"
    14  )
    15  
    16  func init() {
    17  	gossa.RegisterPackage(&gossa.Package{
    18  		Name: "base32",
    19  		Path: "encoding/base32",
    20  		Deps: map[string]string{
    21  			"io":      "io",
    22  			"strconv": "strconv",
    23  		},
    24  		Interfaces: map[string]reflect.Type{},
    25  		NamedTypes: map[string]gossa.NamedType{
    26  			"CorruptInputError": {reflect.TypeOf((*q.CorruptInputError)(nil)).Elem(), "Error", ""},
    27  			"Encoding":          {reflect.TypeOf((*q.Encoding)(nil)).Elem(), "WithPadding", "Decode,DecodeString,DecodedLen,Encode,EncodeToString,EncodedLen,decode"},
    28  		},
    29  		AliasTypes: map[string]reflect.Type{},
    30  		Vars: map[string]reflect.Value{
    31  			"HexEncoding": reflect.ValueOf(&q.HexEncoding),
    32  			"StdEncoding": reflect.ValueOf(&q.StdEncoding),
    33  		},
    34  		Funcs: map[string]reflect.Value{
    35  			"NewDecoder":  reflect.ValueOf(q.NewDecoder),
    36  			"NewEncoder":  reflect.ValueOf(q.NewEncoder),
    37  			"NewEncoding": reflect.ValueOf(q.NewEncoding),
    38  		},
    39  		TypedConsts: map[string]gossa.TypedConst{
    40  			"NoPadding":  {reflect.TypeOf(q.NoPadding), constant.MakeInt64(int64(q.NoPadding))},
    41  			"StdPadding": {reflect.TypeOf(q.StdPadding), constant.MakeInt64(int64(q.StdPadding))},
    42  		},
    43  		UntypedConsts: map[string]gossa.UntypedConst{},
    44  	})
    45  }