github.com/goplus/igop@v0.25.0/pkg/log/slog/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 slog 7 8 import ( 9 q "log/slog" 10 11 "go/constant" 12 "reflect" 13 14 "github.com/goplus/igop" 15 ) 16 17 func init() { 18 igop.RegisterPackage(&igop.Package{ 19 Name: "slog", 20 Path: "log/slog", 21 Deps: map[string]string{ 22 "bytes": "bytes", 23 "context": "context", 24 "encoding": "encoding", 25 "encoding/json": "json", 26 "errors": "errors", 27 "fmt": "fmt", 28 "io": "io", 29 "log": "log", 30 "log/internal": "internal", 31 "log/slog/internal": "internal", 32 "log/slog/internal/buffer": "buffer", 33 "math": "math", 34 "reflect": "reflect", 35 "runtime": "runtime", 36 "slices": "slices", 37 "strconv": "strconv", 38 "strings": "strings", 39 "sync": "sync", 40 "sync/atomic": "atomic", 41 "time": "time", 42 "unicode": "unicode", 43 "unicode/utf8": "utf8", 44 "unsafe": "unsafe", 45 }, 46 Interfaces: map[string]reflect.Type{ 47 "Handler": reflect.TypeOf((*q.Handler)(nil)).Elem(), 48 "Leveler": reflect.TypeOf((*q.Leveler)(nil)).Elem(), 49 "LogValuer": reflect.TypeOf((*q.LogValuer)(nil)).Elem(), 50 }, 51 NamedTypes: map[string]reflect.Type{ 52 "Attr": reflect.TypeOf((*q.Attr)(nil)).Elem(), 53 "HandlerOptions": reflect.TypeOf((*q.HandlerOptions)(nil)).Elem(), 54 "JSONHandler": reflect.TypeOf((*q.JSONHandler)(nil)).Elem(), 55 "Kind": reflect.TypeOf((*q.Kind)(nil)).Elem(), 56 "Level": reflect.TypeOf((*q.Level)(nil)).Elem(), 57 "LevelVar": reflect.TypeOf((*q.LevelVar)(nil)).Elem(), 58 "Logger": reflect.TypeOf((*q.Logger)(nil)).Elem(), 59 "Record": reflect.TypeOf((*q.Record)(nil)).Elem(), 60 "Source": reflect.TypeOf((*q.Source)(nil)).Elem(), 61 "TextHandler": reflect.TypeOf((*q.TextHandler)(nil)).Elem(), 62 "Value": reflect.TypeOf((*q.Value)(nil)).Elem(), 63 }, 64 AliasTypes: map[string]reflect.Type{}, 65 Vars: map[string]reflect.Value{}, 66 Funcs: map[string]reflect.Value{ 67 "Any": reflect.ValueOf(q.Any), 68 "AnyValue": reflect.ValueOf(q.AnyValue), 69 "Bool": reflect.ValueOf(q.Bool), 70 "BoolValue": reflect.ValueOf(q.BoolValue), 71 "Debug": reflect.ValueOf(q.Debug), 72 "DebugContext": reflect.ValueOf(q.DebugContext), 73 "Default": reflect.ValueOf(q.Default), 74 "Duration": reflect.ValueOf(q.Duration), 75 "DurationValue": reflect.ValueOf(q.DurationValue), 76 "Error": reflect.ValueOf(q.Error), 77 "ErrorContext": reflect.ValueOf(q.ErrorContext), 78 "Float64": reflect.ValueOf(q.Float64), 79 "Float64Value": reflect.ValueOf(q.Float64Value), 80 "Group": reflect.ValueOf(q.Group), 81 "GroupValue": reflect.ValueOf(q.GroupValue), 82 "Info": reflect.ValueOf(q.Info), 83 "InfoContext": reflect.ValueOf(q.InfoContext), 84 "Int": reflect.ValueOf(q.Int), 85 "Int64": reflect.ValueOf(q.Int64), 86 "Int64Value": reflect.ValueOf(q.Int64Value), 87 "IntValue": reflect.ValueOf(q.IntValue), 88 "Log": reflect.ValueOf(q.Log), 89 "LogAttrs": reflect.ValueOf(q.LogAttrs), 90 "New": reflect.ValueOf(q.New), 91 "NewJSONHandler": reflect.ValueOf(q.NewJSONHandler), 92 "NewLogLogger": reflect.ValueOf(q.NewLogLogger), 93 "NewRecord": reflect.ValueOf(q.NewRecord), 94 "NewTextHandler": reflect.ValueOf(q.NewTextHandler), 95 "SetDefault": reflect.ValueOf(q.SetDefault), 96 "String": reflect.ValueOf(q.String), 97 "StringValue": reflect.ValueOf(q.StringValue), 98 "Time": reflect.ValueOf(q.Time), 99 "TimeValue": reflect.ValueOf(q.TimeValue), 100 "Uint64": reflect.ValueOf(q.Uint64), 101 "Uint64Value": reflect.ValueOf(q.Uint64Value), 102 "Warn": reflect.ValueOf(q.Warn), 103 "WarnContext": reflect.ValueOf(q.WarnContext), 104 "With": reflect.ValueOf(q.With), 105 }, 106 TypedConsts: map[string]igop.TypedConst{ 107 "KindAny": {reflect.TypeOf(q.KindAny), constant.MakeInt64(int64(q.KindAny))}, 108 "KindBool": {reflect.TypeOf(q.KindBool), constant.MakeInt64(int64(q.KindBool))}, 109 "KindDuration": {reflect.TypeOf(q.KindDuration), constant.MakeInt64(int64(q.KindDuration))}, 110 "KindFloat64": {reflect.TypeOf(q.KindFloat64), constant.MakeInt64(int64(q.KindFloat64))}, 111 "KindGroup": {reflect.TypeOf(q.KindGroup), constant.MakeInt64(int64(q.KindGroup))}, 112 "KindInt64": {reflect.TypeOf(q.KindInt64), constant.MakeInt64(int64(q.KindInt64))}, 113 "KindLogValuer": {reflect.TypeOf(q.KindLogValuer), constant.MakeInt64(int64(q.KindLogValuer))}, 114 "KindString": {reflect.TypeOf(q.KindString), constant.MakeInt64(int64(q.KindString))}, 115 "KindTime": {reflect.TypeOf(q.KindTime), constant.MakeInt64(int64(q.KindTime))}, 116 "KindUint64": {reflect.TypeOf(q.KindUint64), constant.MakeInt64(int64(q.KindUint64))}, 117 "LevelDebug": {reflect.TypeOf(q.LevelDebug), constant.MakeInt64(int64(q.LevelDebug))}, 118 "LevelError": {reflect.TypeOf(q.LevelError), constant.MakeInt64(int64(q.LevelError))}, 119 "LevelInfo": {reflect.TypeOf(q.LevelInfo), constant.MakeInt64(int64(q.LevelInfo))}, 120 "LevelWarn": {reflect.TypeOf(q.LevelWarn), constant.MakeInt64(int64(q.LevelWarn))}, 121 }, 122 UntypedConsts: map[string]igop.UntypedConst{ 123 "LevelKey": {"untyped string", constant.MakeString(string(q.LevelKey))}, 124 "MessageKey": {"untyped string", constant.MakeString(string(q.MessageKey))}, 125 "SourceKey": {"untyped string", constant.MakeString(string(q.SourceKey))}, 126 "TimeKey": {"untyped string", constant.MakeString(string(q.TimeKey))}, 127 }, 128 }) 129 }