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