github.com/gmemcc/yaegi@v0.12.1-0.20221128122509-aa99124c5d16/stdlib/go1_16_log.go (about)

     1  // Code generated by 'yaegi extract log'. DO NOT EDIT.
     2  
     3  // +build go1.16,!go1.17
     4  
     5  package stdlib
     6  
     7  import (
     8  	"go/constant"
     9  	"go/token"
    10  	"log"
    11  	"reflect"
    12  )
    13  
    14  func init() {
    15  	Symbols["log/log"] = map[string]reflect.Value{
    16  		// function, constant and variable definitions
    17  		"Default":       reflect.ValueOf(log.Default),
    18  		"Fatal":         reflect.ValueOf(logFatal),
    19  		"Fatalf":        reflect.ValueOf(logFatalf),
    20  		"Fatalln":       reflect.ValueOf(logFatalln),
    21  		"Flags":         reflect.ValueOf(log.Flags),
    22  		"LUTC":          reflect.ValueOf(constant.MakeFromLiteral("32", token.INT, 0)),
    23  		"Ldate":         reflect.ValueOf(constant.MakeFromLiteral("1", token.INT, 0)),
    24  		"Llongfile":     reflect.ValueOf(constant.MakeFromLiteral("8", token.INT, 0)),
    25  		"Lmicroseconds": reflect.ValueOf(constant.MakeFromLiteral("4", token.INT, 0)),
    26  		"Lmsgprefix":    reflect.ValueOf(constant.MakeFromLiteral("64", token.INT, 0)),
    27  		"Lshortfile":    reflect.ValueOf(constant.MakeFromLiteral("16", token.INT, 0)),
    28  		"LstdFlags":     reflect.ValueOf(constant.MakeFromLiteral("3", token.INT, 0)),
    29  		"Ltime":         reflect.ValueOf(constant.MakeFromLiteral("2", token.INT, 0)),
    30  		"New":           reflect.ValueOf(logNew),
    31  		"Output":        reflect.ValueOf(log.Output),
    32  		"Panic":         reflect.ValueOf(log.Panic),
    33  		"Panicf":        reflect.ValueOf(log.Panicf),
    34  		"Panicln":       reflect.ValueOf(log.Panicln),
    35  		"Prefix":        reflect.ValueOf(log.Prefix),
    36  		"Print":         reflect.ValueOf(log.Print),
    37  		"Printf":        reflect.ValueOf(log.Printf),
    38  		"Println":       reflect.ValueOf(log.Println),
    39  		"SetFlags":      reflect.ValueOf(log.SetFlags),
    40  		"SetOutput":     reflect.ValueOf(log.SetOutput),
    41  		"SetPrefix":     reflect.ValueOf(log.SetPrefix),
    42  		"Writer":        reflect.ValueOf(log.Writer),
    43  
    44  		// type definitions
    45  		"Logger": reflect.ValueOf((*logLogger)(nil)),
    46  	}
    47  }