File: go1_22_log.go

package info (click to toggle)
golang-github-traefik-yaegi 0.16.1-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 24,608 kB
  • sloc: sh: 457; makefile: 39
file content (48 lines) | stat: -rw-r--r-- 1,868 bytes parent folder | download
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
// Code generated by 'yaegi extract log'. DO NOT EDIT.

//go:build go1.22
// +build go1.22

package stdlib

import (
	"go/constant"
	"go/token"
	"log"
	"reflect"
)

func init() {
	Symbols["log/log"] = map[string]reflect.Value{
		// function, constant and variable definitions
		"Default":       reflect.ValueOf(log.Default),
		"Fatal":         reflect.ValueOf(logFatal),
		"Fatalf":        reflect.ValueOf(logFatalf),
		"Fatalln":       reflect.ValueOf(logFatalln),
		"Flags":         reflect.ValueOf(log.Flags),
		"LUTC":          reflect.ValueOf(constant.MakeFromLiteral("32", token.INT, 0)),
		"Ldate":         reflect.ValueOf(constant.MakeFromLiteral("1", token.INT, 0)),
		"Llongfile":     reflect.ValueOf(constant.MakeFromLiteral("8", token.INT, 0)),
		"Lmicroseconds": reflect.ValueOf(constant.MakeFromLiteral("4", token.INT, 0)),
		"Lmsgprefix":    reflect.ValueOf(constant.MakeFromLiteral("64", token.INT, 0)),
		"Lshortfile":    reflect.ValueOf(constant.MakeFromLiteral("16", token.INT, 0)),
		"LstdFlags":     reflect.ValueOf(constant.MakeFromLiteral("3", token.INT, 0)),
		"Ltime":         reflect.ValueOf(constant.MakeFromLiteral("2", token.INT, 0)),
		"New":           reflect.ValueOf(logNew),
		"Output":        reflect.ValueOf(log.Output),
		"Panic":         reflect.ValueOf(log.Panic),
		"Panicf":        reflect.ValueOf(log.Panicf),
		"Panicln":       reflect.ValueOf(log.Panicln),
		"Prefix":        reflect.ValueOf(log.Prefix),
		"Print":         reflect.ValueOf(log.Print),
		"Printf":        reflect.ValueOf(log.Printf),
		"Println":       reflect.ValueOf(log.Println),
		"SetFlags":      reflect.ValueOf(log.SetFlags),
		"SetOutput":     reflect.ValueOf(log.SetOutput),
		"SetPrefix":     reflect.ValueOf(log.SetPrefix),
		"Writer":        reflect.ValueOf(log.Writer),

		// type definitions
		"Logger": reflect.ValueOf((*logLogger)(nil)),
	}
}