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