github.com/goplus/igop@v0.25.0/pkg/bytes/go116_export.go (about)

     1  // export by github.com/goplus/igop/cmd/qexp
     2  
     3  //+build go1.16,!go1.17
     4  
     5  package bytes
     6  
     7  import (
     8  	q "bytes"
     9  
    10  	"go/constant"
    11  	"reflect"
    12  
    13  	"github.com/goplus/igop"
    14  )
    15  
    16  func init() {
    17  	igop.RegisterPackage(&igop.Package{
    18  		Name: "bytes",
    19  		Path: "bytes",
    20  		Deps: map[string]string{
    21  			"errors":           "errors",
    22  			"internal/bytealg": "bytealg",
    23  			"io":               "io",
    24  			"unicode":          "unicode",
    25  			"unicode/utf8":     "utf8",
    26  		},
    27  		Interfaces: map[string]reflect.Type{},
    28  		NamedTypes: map[string]reflect.Type{
    29  			"Buffer": reflect.TypeOf((*q.Buffer)(nil)).Elem(),
    30  			"Reader": reflect.TypeOf((*q.Reader)(nil)).Elem(),
    31  		},
    32  		AliasTypes: map[string]reflect.Type{},
    33  		Vars: map[string]reflect.Value{
    34  			"ErrTooLarge": reflect.ValueOf(&q.ErrTooLarge),
    35  		},
    36  		Funcs: map[string]reflect.Value{
    37  			"Compare":         reflect.ValueOf(q.Compare),
    38  			"Contains":        reflect.ValueOf(q.Contains),
    39  			"ContainsAny":     reflect.ValueOf(q.ContainsAny),
    40  			"ContainsRune":    reflect.ValueOf(q.ContainsRune),
    41  			"Count":           reflect.ValueOf(q.Count),
    42  			"Equal":           reflect.ValueOf(q.Equal),
    43  			"EqualFold":       reflect.ValueOf(q.EqualFold),
    44  			"Fields":          reflect.ValueOf(q.Fields),
    45  			"FieldsFunc":      reflect.ValueOf(q.FieldsFunc),
    46  			"HasPrefix":       reflect.ValueOf(q.HasPrefix),
    47  			"HasSuffix":       reflect.ValueOf(q.HasSuffix),
    48  			"Index":           reflect.ValueOf(q.Index),
    49  			"IndexAny":        reflect.ValueOf(q.IndexAny),
    50  			"IndexByte":       reflect.ValueOf(q.IndexByte),
    51  			"IndexFunc":       reflect.ValueOf(q.IndexFunc),
    52  			"IndexRune":       reflect.ValueOf(q.IndexRune),
    53  			"Join":            reflect.ValueOf(q.Join),
    54  			"LastIndex":       reflect.ValueOf(q.LastIndex),
    55  			"LastIndexAny":    reflect.ValueOf(q.LastIndexAny),
    56  			"LastIndexByte":   reflect.ValueOf(q.LastIndexByte),
    57  			"LastIndexFunc":   reflect.ValueOf(q.LastIndexFunc),
    58  			"Map":             reflect.ValueOf(q.Map),
    59  			"NewBuffer":       reflect.ValueOf(q.NewBuffer),
    60  			"NewBufferString": reflect.ValueOf(q.NewBufferString),
    61  			"NewReader":       reflect.ValueOf(q.NewReader),
    62  			"Repeat":          reflect.ValueOf(q.Repeat),
    63  			"Replace":         reflect.ValueOf(q.Replace),
    64  			"ReplaceAll":      reflect.ValueOf(q.ReplaceAll),
    65  			"Runes":           reflect.ValueOf(q.Runes),
    66  			"Split":           reflect.ValueOf(q.Split),
    67  			"SplitAfter":      reflect.ValueOf(q.SplitAfter),
    68  			"SplitAfterN":     reflect.ValueOf(q.SplitAfterN),
    69  			"SplitN":          reflect.ValueOf(q.SplitN),
    70  			"Title":           reflect.ValueOf(q.Title),
    71  			"ToLower":         reflect.ValueOf(q.ToLower),
    72  			"ToLowerSpecial":  reflect.ValueOf(q.ToLowerSpecial),
    73  			"ToTitle":         reflect.ValueOf(q.ToTitle),
    74  			"ToTitleSpecial":  reflect.ValueOf(q.ToTitleSpecial),
    75  			"ToUpper":         reflect.ValueOf(q.ToUpper),
    76  			"ToUpperSpecial":  reflect.ValueOf(q.ToUpperSpecial),
    77  			"ToValidUTF8":     reflect.ValueOf(q.ToValidUTF8),
    78  			"Trim":            reflect.ValueOf(q.Trim),
    79  			"TrimFunc":        reflect.ValueOf(q.TrimFunc),
    80  			"TrimLeft":        reflect.ValueOf(q.TrimLeft),
    81  			"TrimLeftFunc":    reflect.ValueOf(q.TrimLeftFunc),
    82  			"TrimPrefix":      reflect.ValueOf(q.TrimPrefix),
    83  			"TrimRight":       reflect.ValueOf(q.TrimRight),
    84  			"TrimRightFunc":   reflect.ValueOf(q.TrimRightFunc),
    85  			"TrimSpace":       reflect.ValueOf(q.TrimSpace),
    86  			"TrimSuffix":      reflect.ValueOf(q.TrimSuffix),
    87  		},
    88  		TypedConsts: map[string]igop.TypedConst{},
    89  		UntypedConsts: map[string]igop.UntypedConst{
    90  			"MinRead": {"untyped int", constant.MakeInt64(int64(q.MinRead))},
    91  		},
    92  	})
    93  }