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

25 lines
733 B
Go

package stdlib
// Generated by 'goexports regexp'. Do not edit!
import (
"reflect"
"regexp"
)
func init() {
Value["regexp"] = map[string]reflect.Value{
"Compile": reflect.ValueOf(regexp.Compile),
"CompilePOSIX": reflect.ValueOf(regexp.CompilePOSIX),
"Match": reflect.ValueOf(regexp.Match),
"MatchReader": reflect.ValueOf(regexp.MatchReader),
"MatchString": reflect.ValueOf(regexp.MatchString),
"MustCompile": reflect.ValueOf(regexp.MustCompile),
"MustCompilePOSIX": reflect.ValueOf(regexp.MustCompilePOSIX),
"QuoteMeta": reflect.ValueOf(regexp.QuoteMeta),
}
Type["regexp"] = map[string]reflect.Type{
"Regexp": reflect.TypeOf((*regexp.Regexp)(nil)).Elem(),
}
}