github.com/goplus/igop@v0.25.0/pkg/encoding/gob/go115_export.go (about)

     1  // export by github.com/goplus/igop/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/igop"
    13  )
    14  
    15  func init() {
    16  	igop.RegisterPackage(&igop.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]reflect.Type{
    40  			"CommonType": reflect.TypeOf((*q.CommonType)(nil)).Elem(),
    41  			"Decoder":    reflect.TypeOf((*q.Decoder)(nil)).Elem(),
    42  			"Encoder":    reflect.TypeOf((*q.Encoder)(nil)).Elem(),
    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]igop.TypedConst{},
    53  		UntypedConsts: map[string]igop.UntypedConst{},
    54  	})
    55  }