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

     1  // export by github.com/goplus/igop/cmd/qexp
     2  
     3  //go:build go1.21
     4  // +build go1.21
     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  			"sort":             "sort",
    28  			"strconv":          "strconv",
    29  			"sync":             "sync",
    30  			"unicode/utf8":     "utf8",
    31  		},
    32  		Interfaces: map[string]reflect.Type{
    33  			"Formatter":  reflect.TypeOf((*q.Formatter)(nil)).Elem(),
    34  			"GoStringer": reflect.TypeOf((*q.GoStringer)(nil)).Elem(),
    35  			"ScanState":  reflect.TypeOf((*q.ScanState)(nil)).Elem(),
    36  			"Scanner":    reflect.TypeOf((*q.Scanner)(nil)).Elem(),
    37  			"State":      reflect.TypeOf((*q.State)(nil)).Elem(),
    38  			"Stringer":   reflect.TypeOf((*q.Stringer)(nil)).Elem(),
    39  		},
    40  		NamedTypes: map[string]reflect.Type{},
    41  		AliasTypes: map[string]reflect.Type{},
    42  		Vars:       map[string]reflect.Value{},
    43  		Funcs: map[string]reflect.Value{
    44  			"Append":       reflect.ValueOf(q.Append),
    45  			"Appendf":      reflect.ValueOf(q.Appendf),
    46  			"Appendln":     reflect.ValueOf(q.Appendln),
    47  			"Errorf":       reflect.ValueOf(q.Errorf),
    48  			"FormatString": reflect.ValueOf(q.FormatString),
    49  			"Fprint":       reflect.ValueOf(q.Fprint),
    50  			"Fprintf":      reflect.ValueOf(q.Fprintf),
    51  			"Fprintln":     reflect.ValueOf(q.Fprintln),
    52  			"Fscan":        reflect.ValueOf(q.Fscan),
    53  			"Fscanf":       reflect.ValueOf(q.Fscanf),
    54  			"Fscanln":      reflect.ValueOf(q.Fscanln),
    55  			"Print":        reflect.ValueOf(q.Print),
    56  			"Printf":       reflect.ValueOf(q.Printf),
    57  			"Println":      reflect.ValueOf(q.Println),
    58  			"Scan":         reflect.ValueOf(q.Scan),
    59  			"Scanf":        reflect.ValueOf(q.Scanf),
    60  			"Scanln":       reflect.ValueOf(q.Scanln),
    61  			"Sprint":       reflect.ValueOf(q.Sprint),
    62  			"Sprintf":      reflect.ValueOf(q.Sprintf),
    63  			"Sprintln":     reflect.ValueOf(q.Sprintln),
    64  			"Sscan":        reflect.ValueOf(q.Sscan),
    65  			"Sscanf":       reflect.ValueOf(q.Sscanf),
    66  			"Sscanln":      reflect.ValueOf(q.Sscanln),
    67  		},
    68  		TypedConsts:   map[string]igop.TypedConst{},
    69  		UntypedConsts: map[string]igop.UntypedConst{},
    70  	})
    71  }