Files
moxa/stdlib/fmt.go
Marc Vertes 25adc35a3c Change representation of stdlib from interface{} to reflect.Value
This fixes problems due to storing binary symbols as interfaces{}
instead of concrete type, which confuses lookup functions to retrieve
methods etc. in reflect.
2018-08-28 03:12:28 +02:00

41 lines
1.4 KiB
Go

package stdlib
// Generated by 'goexports fmt'. Do not edit!
import (
"fmt"
"reflect"
)
func init() {
Value["fmt"] = map[string]reflect.Value{
"Errorf": reflect.ValueOf(fmt.Errorf),
"Fprint": reflect.ValueOf(fmt.Fprint),
"Fprintf": reflect.ValueOf(fmt.Fprintf),
"Fprintln": reflect.ValueOf(fmt.Fprintln),
"Fscan": reflect.ValueOf(fmt.Fscan),
"Fscanf": reflect.ValueOf(fmt.Fscanf),
"Fscanln": reflect.ValueOf(fmt.Fscanln),
"Print": reflect.ValueOf(fmt.Print),
"Printf": reflect.ValueOf(fmt.Printf),
"Println": reflect.ValueOf(fmt.Println),
"Scan": reflect.ValueOf(fmt.Scan),
"Scanf": reflect.ValueOf(fmt.Scanf),
"Scanln": reflect.ValueOf(fmt.Scanln),
"Sprint": reflect.ValueOf(fmt.Sprint),
"Sprintf": reflect.ValueOf(fmt.Sprintf),
"Sprintln": reflect.ValueOf(fmt.Sprintln),
"Sscan": reflect.ValueOf(fmt.Sscan),
"Sscanf": reflect.ValueOf(fmt.Sscanf),
"Sscanln": reflect.ValueOf(fmt.Sscanln),
}
Type["fmt"] = map[string]reflect.Type{
"Formatter": reflect.TypeOf((*fmt.Formatter)(nil)).Elem(),
"GoStringer": reflect.TypeOf((*fmt.GoStringer)(nil)).Elem(),
"ScanState": reflect.TypeOf((*fmt.ScanState)(nil)).Elem(),
"Scanner": reflect.TypeOf((*fmt.Scanner)(nil)).Elem(),
"State": reflect.TypeOf((*fmt.State)(nil)).Elem(),
"Stringer": reflect.TypeOf((*fmt.Stringer)(nil)).Elem(),
}
}