Files
moxa/stdlib/go_doc.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

33 lines
1.1 KiB
Go

package stdlib
// Generated by 'goexports go/doc'. Do not edit!
import (
"go/doc"
"reflect"
)
func init() {
Value["go/doc"] = map[string]reflect.Value{
"AllDecls": reflect.ValueOf(doc.AllDecls),
"AllMethods": reflect.ValueOf(doc.AllMethods),
"Examples": reflect.ValueOf(doc.Examples),
"IllegalPrefixes": reflect.ValueOf(doc.IllegalPrefixes),
"IsPredeclared": reflect.ValueOf(doc.IsPredeclared),
"New": reflect.ValueOf(doc.New),
"Synopsis": reflect.ValueOf(doc.Synopsis),
"ToHTML": reflect.ValueOf(doc.ToHTML),
"ToText": reflect.ValueOf(doc.ToText),
}
Type["go/doc"] = map[string]reflect.Type{
"Example": reflect.TypeOf((*doc.Example)(nil)).Elem(),
"Filter": reflect.TypeOf((*doc.Filter)(nil)).Elem(),
"Func": reflect.TypeOf((*doc.Func)(nil)).Elem(),
"Mode": reflect.TypeOf((*doc.Mode)(nil)).Elem(),
"Note": reflect.TypeOf((*doc.Note)(nil)).Elem(),
"Package": reflect.TypeOf((*doc.Package)(nil)).Elem(),
"Type": reflect.TypeOf((*doc.Type)(nil)).Elem(),
"Value": reflect.TypeOf((*doc.Value)(nil)).Elem(),
}
}