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

     1  // export by github.com/goplus/gossa/cmd/qexp
     2  
     3  //+build go1.15,!go1.16
     4  
     5  package gob
     6  
     7  import (
     8  	q "encoding/gob"
     9  
    10  	"reflect"
    11  
    12  	"github.com/goplus/gossa"
    13  )
    14  
    15  func init() {
    16  	gossa.RegisterPackage(&gossa.Package{
    17  		Name: "gob",
    18  		Path: "encoding/gob",
    19  		Deps: map[string]string{
    20  			"bufio":           "bufio",
    21  			"encoding":        "encoding",
    22  			"encoding/binary": "binary",
    23  			"errors":          "errors",
    24  			"fmt":             "fmt",
    25  			"io":              "io",
    26  			"math":            "math",
    27  			"math/bits":       "bits",
    28  			"os":              "os",
    29  			"reflect":         "reflect",
    30  			"sync":            "sync",
    31  			"sync/atomic":     "atomic",
    32  			"unicode":         "unicode",
    33  			"unicode/utf8":    "utf8",
    34  		},
    35  		Interfaces: map[string]reflect.Type{
    36  			"GobDecoder": reflect.TypeOf((*q.GobDecoder)(nil)).Elem(),
    37  			"GobEncoder": reflect.TypeOf((*q.GobEncoder)(nil)).Elem(),
    38  		},
    39  		NamedTypes: map[string]gossa.NamedType{
    40  			"CommonType": {reflect.TypeOf((*q.CommonType)(nil)).Elem(), "", "id,name,safeString,setId,string"},
    41  			"Decoder":    {reflect.TypeOf((*q.Decoder)(nil)).Elem(), "", "Decode,DecodeValue,compatibleType,compileDec,compileIgnoreSingle,compileSingle,decIgnoreOpFor,decOpFor,decodeArray,decodeArrayHelper,decodeGobDecoder,decodeIgnoredValue,decodeInterface,decodeMap,decodeSingle,decodeSlice,decodeStruct,decodeTypeSequence,decodeValue,freeDecoderState,getDecEnginePtr,getIgnoreEnginePtr,gobDecodeOpFor,ignoreArray,ignoreArrayHelper,ignoreGobDecoder,ignoreInterface,ignoreMap,ignoreSingle,ignoreSlice,ignoreStruct,newDecoderState,nextInt,nextUint,readMessage,recvMessage,recvType,typeString"},
    42  			"Encoder":    {reflect.TypeOf((*q.Encoder)(nil)).Elem(), "", "Encode,EncodeValue,encode,encodeArray,encodeGobEncoder,encodeInterface,encodeMap,encodeSingle,encodeStruct,freeEncoderState,newEncoderState,popWriter,pushWriter,sendActualType,sendType,sendTypeDescriptor,sendTypeId,setError,writeMessage,writer"},
    43  		},
    44  		AliasTypes: map[string]reflect.Type{},
    45  		Vars:       map[string]reflect.Value{},
    46  		Funcs: map[string]reflect.Value{
    47  			"NewDecoder":   reflect.ValueOf(q.NewDecoder),
    48  			"NewEncoder":   reflect.ValueOf(q.NewEncoder),
    49  			"Register":     reflect.ValueOf(q.Register),
    50  			"RegisterName": reflect.ValueOf(q.RegisterName),
    51  		},
    52  		TypedConsts:   map[string]gossa.TypedConst{},
    53  		UntypedConsts: map[string]gossa.UntypedConst{},
    54  	})
    55  }