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

     1  // export by github.com/goplus/gossa/cmd/qexp
     2  
     3  //go:build go1.17 && !go1.18
     4  // +build go1.17,!go1.18
     5  
     6  package strings
     7  
     8  import (
     9  	q "strings"
    10  
    11  	"reflect"
    12  
    13  	"github.com/goplus/gossa"
    14  )
    15  
    16  func init() {
    17  	gossa.RegisterPackage(&gossa.Package{
    18  		Name: "strings",
    19  		Path: "strings",
    20  		Deps: map[string]string{
    21  			"errors":           "errors",
    22  			"internal/bytealg": "bytealg",
    23  			"io":               "io",
    24  			"sync":             "sync",
    25  			"unicode":          "unicode",
    26  			"unicode/utf8":     "utf8",
    27  			"unsafe":           "unsafe",
    28  		},
    29  		Interfaces: map[string]reflect.Type{},
    30  		NamedTypes: map[string]gossa.NamedType{
    31  			"Builder":  {reflect.TypeOf((*q.Builder)(nil)).Elem(), "", "Cap,Grow,Len,Reset,String,Write,WriteByte,WriteRune,WriteString,copyCheck,grow"},
    32  			"Reader":   {reflect.TypeOf((*q.Reader)(nil)).Elem(), "", "Len,Read,ReadAt,ReadByte,ReadRune,Reset,Seek,Size,UnreadByte,UnreadRune,WriteTo"},
    33  			"Replacer": {reflect.TypeOf((*q.Replacer)(nil)).Elem(), "", "Replace,WriteString,build,buildOnce"},
    34  		},
    35  		AliasTypes: map[string]reflect.Type{},
    36  		Vars:       map[string]reflect.Value{},
    37  		Funcs: map[string]reflect.Value{
    38  			"Compare":        reflect.ValueOf(q.Compare),
    39  			"Contains":       reflect.ValueOf(q.Contains),
    40  			"ContainsAny":    reflect.ValueOf(q.ContainsAny),
    41  			"ContainsRune":   reflect.ValueOf(q.ContainsRune),
    42  			"Count":          reflect.ValueOf(q.Count),
    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  			"NewReader":      reflect.ValueOf(q.NewReader),
    60  			"NewReplacer":    reflect.ValueOf(q.NewReplacer),
    61  			"Repeat":         reflect.ValueOf(q.Repeat),
    62  			"Replace":        reflect.ValueOf(q.Replace),
    63  			"ReplaceAll":     reflect.ValueOf(q.ReplaceAll),
    64  			"Split":          reflect.ValueOf(q.Split),
    65  			"SplitAfter":     reflect.ValueOf(q.SplitAfter),
    66  			"SplitAfterN":    reflect.ValueOf(q.SplitAfterN),
    67  			"SplitN":         reflect.ValueOf(q.SplitN),
    68  			"Title":          reflect.ValueOf(q.Title),
    69  			"ToLower":        reflect.ValueOf(q.ToLower),
    70  			"ToLowerSpecial": reflect.ValueOf(q.ToLowerSpecial),
    71  			"ToTitle":        reflect.ValueOf(q.ToTitle),
    72  			"ToTitleSpecial": reflect.ValueOf(q.ToTitleSpecial),
    73  			"ToUpper":        reflect.ValueOf(q.ToUpper),
    74  			"ToUpperSpecial": reflect.ValueOf(q.ToUpperSpecial),
    75  			"ToValidUTF8":    reflect.ValueOf(q.ToValidUTF8),
    76  			"Trim":           reflect.ValueOf(q.Trim),
    77  			"TrimFunc":       reflect.ValueOf(q.TrimFunc),
    78  			"TrimLeft":       reflect.ValueOf(q.TrimLeft),
    79  			"TrimLeftFunc":   reflect.ValueOf(q.TrimLeftFunc),
    80  			"TrimPrefix":     reflect.ValueOf(q.TrimPrefix),
    81  			"TrimRight":      reflect.ValueOf(q.TrimRight),
    82  			"TrimRightFunc":  reflect.ValueOf(q.TrimRightFunc),
    83  			"TrimSpace":      reflect.ValueOf(q.TrimSpace),
    84  			"TrimSuffix":     reflect.ValueOf(q.TrimSuffix),
    85  		},
    86  		TypedConsts:   map[string]gossa.TypedConst{},
    87  		UntypedConsts: map[string]gossa.UntypedConst{},
    88  	})
    89  }