This fixes problems due to storing binary symbols as interfaces{}
instead of concrete type, which confuses lookup functions to retrieve
methods etc. in reflect.
25 lines
733 B
Go
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(),
|
|
}
|
|
}
|