github.com/goplus/gossa@v0.3.25/pkg/unicode/utf16/go117_export.go (about)

     1  // export by github.com/goplus/gossa/cmd/qexp
     2  
     3  //go:build go1.17 && !go1.18
     4  // +build go1.17,!go1.18
     5  
     6  package utf16
     7  
     8  import (
     9  	q "unicode/utf16"
    10  
    11  	"reflect"
    12  
    13  	"github.com/goplus/gossa"
    14  )
    15  
    16  func init() {
    17  	gossa.RegisterPackage(&gossa.Package{
    18  		Name:       "utf16",
    19  		Path:       "unicode/utf16",
    20  		Deps:       map[string]string{},
    21  		Interfaces: map[string]reflect.Type{},
    22  		NamedTypes: map[string]gossa.NamedType{},
    23  		AliasTypes: map[string]reflect.Type{},
    24  		Vars:       map[string]reflect.Value{},
    25  		Funcs: map[string]reflect.Value{
    26  			"Decode":      reflect.ValueOf(q.Decode),
    27  			"DecodeRune":  reflect.ValueOf(q.DecodeRune),
    28  			"Encode":      reflect.ValueOf(q.Encode),
    29  			"EncodeRune":  reflect.ValueOf(q.EncodeRune),
    30  			"IsSurrogate": reflect.ValueOf(q.IsSurrogate),
    31  		},
    32  		TypedConsts:   map[string]gossa.TypedConst{},
    33  		UntypedConsts: map[string]gossa.UntypedConst{},
    34  	})
    35  }