github.com/traefik/yaegi@v0.15.1/stdlib/go1_20_bytes.go (about) 1 // Code generated by 'yaegi extract bytes'. DO NOT EDIT. 2 3 //go:build go1.20 4 // +build go1.20 5 6 package stdlib 7 8 import ( 9 "bytes" 10 "go/constant" 11 "go/token" 12 "reflect" 13 ) 14 15 func init() { 16 Symbols["bytes/bytes"] = map[string]reflect.Value{ 17 // function, constant and variable definitions 18 "Clone": reflect.ValueOf(bytes.Clone), 19 "Compare": reflect.ValueOf(bytes.Compare), 20 "Contains": reflect.ValueOf(bytes.Contains), 21 "ContainsAny": reflect.ValueOf(bytes.ContainsAny), 22 "ContainsRune": reflect.ValueOf(bytes.ContainsRune), 23 "Count": reflect.ValueOf(bytes.Count), 24 "Cut": reflect.ValueOf(bytes.Cut), 25 "CutPrefix": reflect.ValueOf(bytes.CutPrefix), 26 "CutSuffix": reflect.ValueOf(bytes.CutSuffix), 27 "Equal": reflect.ValueOf(bytes.Equal), 28 "EqualFold": reflect.ValueOf(bytes.EqualFold), 29 "ErrTooLarge": reflect.ValueOf(&bytes.ErrTooLarge).Elem(), 30 "Fields": reflect.ValueOf(bytes.Fields), 31 "FieldsFunc": reflect.ValueOf(bytes.FieldsFunc), 32 "HasPrefix": reflect.ValueOf(bytes.HasPrefix), 33 "HasSuffix": reflect.ValueOf(bytes.HasSuffix), 34 "Index": reflect.ValueOf(bytes.Index), 35 "IndexAny": reflect.ValueOf(bytes.IndexAny), 36 "IndexByte": reflect.ValueOf(bytes.IndexByte), 37 "IndexFunc": reflect.ValueOf(bytes.IndexFunc), 38 "IndexRune": reflect.ValueOf(bytes.IndexRune), 39 "Join": reflect.ValueOf(bytes.Join), 40 "LastIndex": reflect.ValueOf(bytes.LastIndex), 41 "LastIndexAny": reflect.ValueOf(bytes.LastIndexAny), 42 "LastIndexByte": reflect.ValueOf(bytes.LastIndexByte), 43 "LastIndexFunc": reflect.ValueOf(bytes.LastIndexFunc), 44 "Map": reflect.ValueOf(bytes.Map), 45 "MinRead": reflect.ValueOf(constant.MakeFromLiteral("512", token.INT, 0)), 46 "NewBuffer": reflect.ValueOf(bytes.NewBuffer), 47 "NewBufferString": reflect.ValueOf(bytes.NewBufferString), 48 "NewReader": reflect.ValueOf(bytes.NewReader), 49 "Repeat": reflect.ValueOf(bytes.Repeat), 50 "Replace": reflect.ValueOf(bytes.Replace), 51 "ReplaceAll": reflect.ValueOf(bytes.ReplaceAll), 52 "Runes": reflect.ValueOf(bytes.Runes), 53 "Split": reflect.ValueOf(bytes.Split), 54 "SplitAfter": reflect.ValueOf(bytes.SplitAfter), 55 "SplitAfterN": reflect.ValueOf(bytes.SplitAfterN), 56 "SplitN": reflect.ValueOf(bytes.SplitN), 57 "Title": reflect.ValueOf(bytes.Title), 58 "ToLower": reflect.ValueOf(bytes.ToLower), 59 "ToLowerSpecial": reflect.ValueOf(bytes.ToLowerSpecial), 60 "ToTitle": reflect.ValueOf(bytes.ToTitle), 61 "ToTitleSpecial": reflect.ValueOf(bytes.ToTitleSpecial), 62 "ToUpper": reflect.ValueOf(bytes.ToUpper), 63 "ToUpperSpecial": reflect.ValueOf(bytes.ToUpperSpecial), 64 "ToValidUTF8": reflect.ValueOf(bytes.ToValidUTF8), 65 "Trim": reflect.ValueOf(bytes.Trim), 66 "TrimFunc": reflect.ValueOf(bytes.TrimFunc), 67 "TrimLeft": reflect.ValueOf(bytes.TrimLeft), 68 "TrimLeftFunc": reflect.ValueOf(bytes.TrimLeftFunc), 69 "TrimPrefix": reflect.ValueOf(bytes.TrimPrefix), 70 "TrimRight": reflect.ValueOf(bytes.TrimRight), 71 "TrimRightFunc": reflect.ValueOf(bytes.TrimRightFunc), 72 "TrimSpace": reflect.ValueOf(bytes.TrimSpace), 73 "TrimSuffix": reflect.ValueOf(bytes.TrimSuffix), 74 75 // type definitions 76 "Buffer": reflect.ValueOf((*bytes.Buffer)(nil)), 77 "Reader": reflect.ValueOf((*bytes.Reader)(nil)), 78 } 79 }