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

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