github.com/mattn/anko@v0.1.10/packages/strings.go (about) 1 package packages 2 3 import ( 4 "reflect" 5 "strings" 6 7 "github.com/mattn/anko/env" 8 ) 9 10 func init() { 11 env.Packages["strings"] = map[string]reflect.Value{ 12 "Contains": reflect.ValueOf(strings.Contains), 13 "ContainsAny": reflect.ValueOf(strings.ContainsAny), 14 "ContainsRune": reflect.ValueOf(strings.ContainsRune), 15 "Count": reflect.ValueOf(strings.Count), 16 "EqualFold": reflect.ValueOf(strings.EqualFold), 17 "Fields": reflect.ValueOf(strings.Fields), 18 "FieldsFunc": reflect.ValueOf(strings.FieldsFunc), 19 "HasPrefix": reflect.ValueOf(strings.HasPrefix), 20 "HasSuffix": reflect.ValueOf(strings.HasSuffix), 21 "Index": reflect.ValueOf(strings.Index), 22 "IndexAny": reflect.ValueOf(strings.IndexAny), 23 "IndexByte": reflect.ValueOf(strings.IndexByte), 24 "IndexFunc": reflect.ValueOf(strings.IndexFunc), 25 "IndexRune": reflect.ValueOf(strings.IndexRune), 26 "Join": reflect.ValueOf(strings.Join), 27 "LastIndex": reflect.ValueOf(strings.LastIndex), 28 "LastIndexAny": reflect.ValueOf(strings.LastIndexAny), 29 "LastIndexFunc": reflect.ValueOf(strings.LastIndexFunc), 30 "Map": reflect.ValueOf(strings.Map), 31 "NewReader": reflect.ValueOf(strings.NewReader), 32 "NewReplacer": reflect.ValueOf(strings.NewReplacer), 33 "Repeat": reflect.ValueOf(strings.Repeat), 34 "Replace": reflect.ValueOf(strings.Replace), 35 "Split": reflect.ValueOf(strings.Split), 36 "SplitAfter": reflect.ValueOf(strings.SplitAfter), 37 "SplitAfterN": reflect.ValueOf(strings.SplitAfterN), 38 "SplitN": reflect.ValueOf(strings.SplitN), 39 "Title": reflect.ValueOf(strings.Title), 40 "ToLower": reflect.ValueOf(strings.ToLower), 41 "ToLowerSpecial": reflect.ValueOf(strings.ToLowerSpecial), 42 "ToTitle": reflect.ValueOf(strings.ToTitle), 43 "ToTitleSpecial": reflect.ValueOf(strings.ToTitleSpecial), 44 "ToUpper": reflect.ValueOf(strings.ToUpper), 45 "ToUpperSpecial": reflect.ValueOf(strings.ToUpperSpecial), 46 "Trim": reflect.ValueOf(strings.Trim), 47 "TrimFunc": reflect.ValueOf(strings.TrimFunc), 48 "TrimLeft": reflect.ValueOf(strings.TrimLeft), 49 "TrimLeftFunc": reflect.ValueOf(strings.TrimLeftFunc), 50 "TrimPrefix": reflect.ValueOf(strings.TrimPrefix), 51 "TrimRight": reflect.ValueOf(strings.TrimRight), 52 "TrimRightFunc": reflect.ValueOf(strings.TrimRightFunc), 53 "TrimSpace": reflect.ValueOf(strings.TrimSpace), 54 "TrimSuffix": reflect.ValueOf(strings.TrimSuffix), 55 } 56 stringsGo110() 57 }