github.com/goplus/gossa@v0.3.25/pkg/io/ioutil/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 ioutil
     7  
     8  import (
     9  	q "io/ioutil"
    10  
    11  	"reflect"
    12  
    13  	"github.com/goplus/gossa"
    14  )
    15  
    16  func init() {
    17  	gossa.RegisterPackage(&gossa.Package{
    18  		Name: "ioutil",
    19  		Path: "io/ioutil",
    20  		Deps: map[string]string{
    21  			"io":    "io",
    22  			"io/fs": "fs",
    23  			"os":    "os",
    24  			"sort":  "sort",
    25  		},
    26  		Interfaces: map[string]reflect.Type{},
    27  		NamedTypes: map[string]gossa.NamedType{},
    28  		AliasTypes: map[string]reflect.Type{},
    29  		Vars: map[string]reflect.Value{
    30  			"Discard": reflect.ValueOf(&q.Discard),
    31  		},
    32  		Funcs: map[string]reflect.Value{
    33  			"NopCloser": reflect.ValueOf(q.NopCloser),
    34  			"ReadAll":   reflect.ValueOf(q.ReadAll),
    35  			"ReadDir":   reflect.ValueOf(q.ReadDir),
    36  			"ReadFile":  reflect.ValueOf(q.ReadFile),
    37  			"TempDir":   reflect.ValueOf(q.TempDir),
    38  			"TempFile":  reflect.ValueOf(q.TempFile),
    39  			"WriteFile": reflect.ValueOf(q.WriteFile),
    40  		},
    41  		TypedConsts:   map[string]gossa.TypedConst{},
    42  		UntypedConsts: map[string]gossa.UntypedConst{},
    43  	})
    44  }