github.com/goplus/gossa@v0.3.25/pkg/strings/go114_export.go (about)

     1  // export by github.com/goplus/gossa/cmd/qexp
     2  
     3  //+build go1.14,!go1.15
     4  
     5  package strings
     6  
     7  import (
     8  	q "strings"
     9  
    10  	"reflect"
    11  
    12  	"github.com/goplus/gossa"
    13  )
    14  
    15  func init() {
    16  	gossa.RegisterPackage(&gossa.Package{
    17  		Name: "strings",
    18  		Path: "strings",
    19  		Deps: map[string]string{
    20  			"errors":           "errors",
    21  			"internal/bytealg": "bytealg",
    22  			"io":               "io",
    23  			"sync":             "sync",
    24  			"unicode":          "unicode",
    25  			"unicode/utf8":     "utf8",
    26  			"unsafe":           "unsafe",
    27  		},
    28  		Interfaces: map[string]reflect.Type{},
    29  		NamedTypes: map[string]gossa.NamedType{
    30  			"Builder":  {reflect.TypeOf((*q.Builder)(nil)).Elem(), "", "Cap,Grow,Len,Reset,String,Write,WriteByte,WriteRune,WriteString,copyCheck,grow"},
    31  			"Reader":   {reflect.TypeOf((*q.Reader)(nil)).Elem(), "", "Len,Read,ReadAt,ReadByte,ReadRune,Reset,Seek,Size,UnreadByte,UnreadRune,WriteTo"},
    32  			"Replacer": {reflect.TypeOf((*q.Replacer)(nil)).Elem(), "", "Replace,WriteString,build,buildOnce"},
    33  		},
    34  		AliasTypes: map[string]reflect.Type{},
    35  		Vars:       map[string]reflect.Value{},
    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  			"EqualFold":      reflect.ValueOf(q.EqualFold),
    43  			"Fields":         reflect.ValueOf(q.Fields),
    44  			"FieldsFunc":     reflect.ValueOf(q.FieldsFunc),
    45  			"HasPrefix":      reflect.ValueOf(q.HasPrefix),
    46  			"HasSuffix":      reflect.ValueOf(q.HasSuffix),
    47  			"Index":          reflect.ValueOf(q.Index),
    48  			"IndexAny":       reflect.ValueOf(q.IndexAny),
    49  			"IndexByte":      reflect.ValueOf(q.IndexByte),
    50  			"IndexFunc":      reflect.ValueOf(q.IndexFunc),
    51  			"IndexRune":      reflect.ValueOf(q.IndexRune),
    52  			"Join":           reflect.ValueOf(q.Join),
    53  			"LastIndex":      reflect.ValueOf(q.LastIndex),
    54  			"LastIndexAny":   reflect.ValueOf(q.LastIndexAny),
    55  			"LastIndexByte":  reflect.ValueOf(q.LastIndexByte),
    56  			"LastIndexFunc":  reflect.ValueOf(q.LastIndexFunc),
    57  			"Map":            reflect.ValueOf(q.Map),
    58  			"NewReader":      reflect.ValueOf(q.NewReader),
    59  			"NewReplacer":    reflect.ValueOf(q.NewReplacer),
    60  			"Repeat":         reflect.ValueOf(q.Repeat),
    61  			"Replace":        reflect.ValueOf(q.Replace),
    62  			"ReplaceAll":     reflect.ValueOf(q.ReplaceAll),
    63  			"Split":          reflect.ValueOf(q.Split),
    64  			"SplitAfter":     reflect.ValueOf(q.SplitAfter),
    65  			"SplitAfterN":    reflect.ValueOf(q.SplitAfterN),
    66  			"SplitN":         reflect.ValueOf(q.SplitN),
    67  			"Title":          reflect.ValueOf(q.Title),
    68  			"ToLower":        reflect.ValueOf(q.ToLower),
    69  			"ToLowerSpecial": reflect.ValueOf(q.ToLowerSpecial),
    70  			"ToTitle":        reflect.ValueOf(q.ToTitle),
    71  			"ToTitleSpecial": reflect.ValueOf(q.ToTitleSpecial),
    72  			"ToUpper":        reflect.ValueOf(q.ToUpper),
    73  			"ToUpperSpecial": reflect.ValueOf(q.ToUpperSpecial),
    74  			"ToValidUTF8":    reflect.ValueOf(q.ToValidUTF8),
    75  			"Trim":           reflect.ValueOf(q.Trim),
    76  			"TrimFunc":       reflect.ValueOf(q.TrimFunc),
    77  			"TrimLeft":       reflect.ValueOf(q.TrimLeft),
    78  			"TrimLeftFunc":   reflect.ValueOf(q.TrimLeftFunc),
    79  			"TrimPrefix":     reflect.ValueOf(q.TrimPrefix),
    80  			"TrimRight":      reflect.ValueOf(q.TrimRight),
    81  			"TrimRightFunc":  reflect.ValueOf(q.TrimRightFunc),
    82  			"TrimSpace":      reflect.ValueOf(q.TrimSpace),
    83  			"TrimSuffix":     reflect.ValueOf(q.TrimSuffix),
    84  		},
    85  		TypedConsts:   map[string]gossa.TypedConst{},
    86  		UntypedConsts: map[string]gossa.UntypedConst{},
    87  	})
    88  }