github.com/goplus/igop@v0.25.0/pkg/net/rpc/jsonrpc/go117_export.go (about)

     1  // export by github.com/goplus/igop/cmd/qexp
     2  
     3  //go:build go1.17 && !go1.18
     4  // +build go1.17,!go1.18
     5  
     6  package jsonrpc
     7  
     8  import (
     9  	q "net/rpc/jsonrpc"
    10  
    11  	"reflect"
    12  
    13  	"github.com/goplus/igop"
    14  )
    15  
    16  func init() {
    17  	igop.RegisterPackage(&igop.Package{
    18  		Name: "jsonrpc",
    19  		Path: "net/rpc/jsonrpc",
    20  		Deps: map[string]string{
    21  			"encoding/json": "json",
    22  			"errors":        "errors",
    23  			"fmt":           "fmt",
    24  			"io":            "io",
    25  			"net":           "net",
    26  			"net/rpc":       "rpc",
    27  			"sync":          "sync",
    28  		},
    29  		Interfaces: map[string]reflect.Type{},
    30  		NamedTypes: map[string]reflect.Type{},
    31  		AliasTypes: map[string]reflect.Type{},
    32  		Vars:       map[string]reflect.Value{},
    33  		Funcs: map[string]reflect.Value{
    34  			"Dial":           reflect.ValueOf(q.Dial),
    35  			"NewClient":      reflect.ValueOf(q.NewClient),
    36  			"NewClientCodec": reflect.ValueOf(q.NewClientCodec),
    37  			"NewServerCodec": reflect.ValueOf(q.NewServerCodec),
    38  			"ServeConn":      reflect.ValueOf(q.ServeConn),
    39  		},
    40  		TypedConsts:   map[string]igop.TypedConst{},
    41  		UntypedConsts: map[string]igop.UntypedConst{},
    42  	})
    43  }