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

     1  // export by github.com/goplus/gossa/cmd/qexp
     2  
     3  //+build go1.15,!go1.16
     4  
     5  package fmt
     6  
     7  import (
     8  	q "fmt"
     9  
    10  	"reflect"
    11  
    12  	"github.com/goplus/gossa"
    13  )
    14  
    15  func init() {
    16  	gossa.RegisterPackage(&gossa.Package{
    17  		Name: "fmt",
    18  		Path: "fmt",
    19  		Deps: map[string]string{
    20  			"errors":           "errors",
    21  			"internal/fmtsort": "fmtsort",
    22  			"io":               "io",
    23  			"math":             "math",
    24  			"os":               "os",
    25  			"reflect":          "reflect",
    26  			"strconv":          "strconv",
    27  			"sync":             "sync",
    28  			"unicode/utf8":     "utf8",
    29  		},
    30  		Interfaces: map[string]reflect.Type{
    31  			"Formatter":  reflect.TypeOf((*q.Formatter)(nil)).Elem(),
    32  			"GoStringer": reflect.TypeOf((*q.GoStringer)(nil)).Elem(),
    33  			"ScanState":  reflect.TypeOf((*q.ScanState)(nil)).Elem(),
    34  			"Scanner":    reflect.TypeOf((*q.Scanner)(nil)).Elem(),
    35  			"State":      reflect.TypeOf((*q.State)(nil)).Elem(),
    36  			"Stringer":   reflect.TypeOf((*q.Stringer)(nil)).Elem(),
    37  		},
    38  		NamedTypes: map[string]gossa.NamedType{},
    39  		AliasTypes: map[string]reflect.Type{},
    40  		Vars:       map[string]reflect.Value{},
    41  		Funcs: map[string]reflect.Value{
    42  			"Errorf":   reflect.ValueOf(q.Errorf),
    43  			"Fprint":   reflect.ValueOf(q.Fprint),
    44  			"Fprintf":  reflect.ValueOf(q.Fprintf),
    45  			"Fprintln": reflect.ValueOf(q.Fprintln),
    46  			"Fscan":    reflect.ValueOf(q.Fscan),
    47  			"Fscanf":   reflect.ValueOf(q.Fscanf),
    48  			"Fscanln":  reflect.ValueOf(q.Fscanln),
    49  			"Print":    reflect.ValueOf(q.Print),
    50  			"Printf":   reflect.ValueOf(q.Printf),
    51  			"Println":  reflect.ValueOf(q.Println),
    52  			"Scan":     reflect.ValueOf(q.Scan),
    53  			"Scanf":    reflect.ValueOf(q.Scanf),
    54  			"Scanln":   reflect.ValueOf(q.Scanln),
    55  			"Sprint":   reflect.ValueOf(q.Sprint),
    56  			"Sprintf":  reflect.ValueOf(q.Sprintf),
    57  			"Sprintln": reflect.ValueOf(q.Sprintln),
    58  			"Sscan":    reflect.ValueOf(q.Sscan),
    59  			"Sscanf":   reflect.ValueOf(q.Sscanf),
    60  			"Sscanln":  reflect.ValueOf(q.Sscanln),
    61  		},
    62  		TypedConsts:   map[string]gossa.TypedConst{},
    63  		UntypedConsts: map[string]gossa.UntypedConst{},
    64  	})
    65  }