github.com/goplus/gossa@v0.3.25/pkg/io/ioutil/go114_export.go (about)

     1  // export by github.com/goplus/gossa/cmd/qexp
     2  
     3  //+build go1.14,!go1.15
     4  
     5  package ioutil
     6  
     7  import (
     8  	q "io/ioutil"
     9  
    10  	"reflect"
    11  
    12  	"github.com/goplus/gossa"
    13  )
    14  
    15  func init() {
    16  	gossa.RegisterPackage(&gossa.Package{
    17  		Name: "ioutil",
    18  		Path: "io/ioutil",
    19  		Deps: map[string]string{
    20  			"bytes":         "bytes",
    21  			"io":            "io",
    22  			"os":            "os",
    23  			"path/filepath": "filepath",
    24  			"sort":          "sort",
    25  			"strconv":       "strconv",
    26  			"strings":       "strings",
    27  			"sync":          "sync",
    28  			"time":          "time",
    29  		},
    30  		Interfaces: map[string]reflect.Type{},
    31  		NamedTypes: map[string]gossa.NamedType{},
    32  		AliasTypes: map[string]reflect.Type{},
    33  		Vars: map[string]reflect.Value{
    34  			"Discard": reflect.ValueOf(&q.Discard),
    35  		},
    36  		Funcs: map[string]reflect.Value{
    37  			"NopCloser": reflect.ValueOf(q.NopCloser),
    38  			"ReadAll":   reflect.ValueOf(q.ReadAll),
    39  			"ReadDir":   reflect.ValueOf(q.ReadDir),
    40  			"ReadFile":  reflect.ValueOf(q.ReadFile),
    41  			"TempDir":   reflect.ValueOf(q.TempDir),
    42  			"TempFile":  reflect.ValueOf(q.TempFile),
    43  			"WriteFile": reflect.ValueOf(q.WriteFile),
    44  		},
    45  		TypedConsts:   map[string]gossa.TypedConst{},
    46  		UntypedConsts: map[string]gossa.UntypedConst{},
    47  	})
    48  }