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

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