github.com/mattn/anko@v0.1.10/packages/regexp.go (about) 1 package packages 2 3 import ( 4 "reflect" 5 "regexp" 6 7 "github.com/mattn/anko/env" 8 ) 9 10 func init() { 11 env.Packages["regexp"] = map[string]reflect.Value{ 12 "Match": reflect.ValueOf(regexp.Match), 13 "MatchReader": reflect.ValueOf(regexp.MatchReader), 14 "MatchString": reflect.ValueOf(regexp.MatchString), 15 "QuoteMeta": reflect.ValueOf(regexp.QuoteMeta), 16 "Compile": reflect.ValueOf(regexp.Compile), 17 "CompilePOSIX": reflect.ValueOf(regexp.CompilePOSIX), 18 "MustCompile": reflect.ValueOf(regexp.MustCompile), 19 "MustCompilePOSIX": reflect.ValueOf(regexp.MustCompilePOSIX), 20 } 21 }