github.com/goplus/igop@v0.25.0/pkg/fmt/go119_export.go (about)

     1  // export by github.com/goplus/igop/cmd/qexp
     2  
     3  //go:build go1.19 && !go1.20
     4  // +build go1.19,!go1.20
     5  
     6  package fmt
     7  
     8  import (
     9  	q "fmt"
    10  
    11  	"reflect"
    12  
    13  	"github.com/goplus/igop"
    14  )
    15  
    16  func init() {
    17  	igop.RegisterPackage(&igop.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]reflect.Type{},
    40  		AliasTypes: map[string]reflect.Type{},
    41  		Vars:       map[string]reflect.Value{},
    42  		Funcs: map[string]reflect.Value{
    43  			"Append":   reflect.ValueOf(q.Append),
    44  			"Appendf":  reflect.ValueOf(q.Appendf),
    45  			"Appendln": reflect.ValueOf(q.Appendln),
    46  			"Errorf":   reflect.ValueOf(q.Errorf),
    47  			"Fprint":   reflect.ValueOf(q.Fprint),
    48  			"Fprintf":  reflect.ValueOf(q.Fprintf),
    49  			"Fprintln": reflect.ValueOf(q.Fprintln),
    50  			"Fscan":    reflect.ValueOf(q.Fscan),
    51  			"Fscanf":   reflect.ValueOf(q.Fscanf),
    52  			"Fscanln":  reflect.ValueOf(q.Fscanln),
    53  			"Print":    reflect.ValueOf(q.Print),
    54  			"Printf":   reflect.ValueOf(q.Printf),
    55  			"Println":  reflect.ValueOf(q.Println),
    56  			"Scan":     reflect.ValueOf(q.Scan),
    57  			"Scanf":    reflect.ValueOf(q.Scanf),
    58  			"Scanln":   reflect.ValueOf(q.Scanln),
    59  			"Sprint":   reflect.ValueOf(q.Sprint),
    60  			"Sprintf":  reflect.ValueOf(q.Sprintf),
    61  			"Sprintln": reflect.ValueOf(q.Sprintln),
    62  			"Sscan":    reflect.ValueOf(q.Sscan),
    63  			"Sscanf":   reflect.ValueOf(q.Sscanf),
    64  			"Sscanln":  reflect.ValueOf(q.Sscanln),
    65  		},
    66  		TypedConsts:   map[string]igop.TypedConst{},
    67  		UntypedConsts: map[string]igop.UntypedConst{},
    68  	})
    69  }