github.com/goplus/igop@v0.25.0/pkg/encoding/base64/go120_export.go (about)

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