github.com/goplus/igop@v0.25.0/pkg/log/go117_export.go (about)

     1  // export by github.com/goplus/igop/cmd/qexp
     2  
     3  //go:build go1.17 && !go1.18
     4  // +build go1.17,!go1.18
     5  
     6  package log
     7  
     8  import (
     9  	q "log"
    10  
    11  	"go/constant"
    12  	"reflect"
    13  
    14  	"github.com/goplus/igop"
    15  )
    16  
    17  func init() {
    18  	igop.RegisterPackage(&igop.Package{
    19  		Name: "log",
    20  		Path: "log",
    21  		Deps: map[string]string{
    22  			"fmt":     "fmt",
    23  			"io":      "io",
    24  			"os":      "os",
    25  			"runtime": "runtime",
    26  			"sync":    "sync",
    27  			"time":    "time",
    28  		},
    29  		Interfaces: map[string]reflect.Type{},
    30  		NamedTypes: map[string]reflect.Type{
    31  			"Logger": reflect.TypeOf((*q.Logger)(nil)).Elem(),
    32  		},
    33  		AliasTypes: map[string]reflect.Type{},
    34  		Vars:       map[string]reflect.Value{},
    35  		Funcs: map[string]reflect.Value{
    36  			"Default":   reflect.ValueOf(q.Default),
    37  			"Fatal":     reflect.ValueOf(q.Fatal),
    38  			"Fatalf":    reflect.ValueOf(q.Fatalf),
    39  			"Fatalln":   reflect.ValueOf(q.Fatalln),
    40  			"Flags":     reflect.ValueOf(q.Flags),
    41  			"New":       reflect.ValueOf(q.New),
    42  			"Output":    reflect.ValueOf(q.Output),
    43  			"Panic":     reflect.ValueOf(q.Panic),
    44  			"Panicf":    reflect.ValueOf(q.Panicf),
    45  			"Panicln":   reflect.ValueOf(q.Panicln),
    46  			"Prefix":    reflect.ValueOf(q.Prefix),
    47  			"Print":     reflect.ValueOf(q.Print),
    48  			"Printf":    reflect.ValueOf(q.Printf),
    49  			"Println":   reflect.ValueOf(q.Println),
    50  			"SetFlags":  reflect.ValueOf(q.SetFlags),
    51  			"SetOutput": reflect.ValueOf(q.SetOutput),
    52  			"SetPrefix": reflect.ValueOf(q.SetPrefix),
    53  			"Writer":    reflect.ValueOf(q.Writer),
    54  		},
    55  		TypedConsts: map[string]igop.TypedConst{},
    56  		UntypedConsts: map[string]igop.UntypedConst{
    57  			"LUTC":          {"untyped int", constant.MakeInt64(int64(q.LUTC))},
    58  			"Ldate":         {"untyped int", constant.MakeInt64(int64(q.Ldate))},
    59  			"Llongfile":     {"untyped int", constant.MakeInt64(int64(q.Llongfile))},
    60  			"Lmicroseconds": {"untyped int", constant.MakeInt64(int64(q.Lmicroseconds))},
    61  			"Lmsgprefix":    {"untyped int", constant.MakeInt64(int64(q.Lmsgprefix))},
    62  			"Lshortfile":    {"untyped int", constant.MakeInt64(int64(q.Lshortfile))},
    63  			"LstdFlags":     {"untyped int", constant.MakeInt64(int64(q.LstdFlags))},
    64  			"Ltime":         {"untyped int", constant.MakeInt64(int64(q.Ltime))},
    65  		},
    66  	})
    67  }