github.com/goplus/gossa@v0.3.25/pkg/log/go117_export.go (about) 1 // export by github.com/goplus/gossa/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/gossa" 15 ) 16 17 func init() { 18 gossa.RegisterPackage(&gossa.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]gossa.NamedType{ 31 "Logger": {reflect.TypeOf((*q.Logger)(nil)).Elem(), "", "Fatal,Fatalf,Fatalln,Flags,Output,Panic,Panicf,Panicln,Prefix,Print,Printf,Println,SetFlags,SetOutput,SetPrefix,Writer,formatHeader"}, 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]gossa.TypedConst{}, 56 UntypedConsts: map[string]gossa.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 }