github.com/goplus/gossa@v0.3.25/pkg/regexp/go116_export.go (about)

     1  // export by github.com/goplus/gossa/cmd/qexp
     2  
     3  //+build go1.16,!go1.17
     4  
     5  package regexp
     6  
     7  import (
     8  	q "regexp"
     9  
    10  	"reflect"
    11  
    12  	"github.com/goplus/gossa"
    13  )
    14  
    15  func init() {
    16  	gossa.RegisterPackage(&gossa.Package{
    17  		Name: "regexp",
    18  		Path: "regexp",
    19  		Deps: map[string]string{
    20  			"bytes":         "bytes",
    21  			"io":            "io",
    22  			"regexp/syntax": "syntax",
    23  			"sort":          "sort",
    24  			"strconv":       "strconv",
    25  			"strings":       "strings",
    26  			"sync":          "sync",
    27  			"unicode":       "unicode",
    28  			"unicode/utf8":  "utf8",
    29  		},
    30  		Interfaces: map[string]reflect.Type{},
    31  		NamedTypes: map[string]gossa.NamedType{
    32  			"Regexp": {reflect.TypeOf((*q.Regexp)(nil)).Elem(), "", "Copy,Expand,ExpandString,Find,FindAll,FindAllIndex,FindAllString,FindAllStringIndex,FindAllStringSubmatch,FindAllStringSubmatchIndex,FindAllSubmatch,FindAllSubmatchIndex,FindIndex,FindReaderIndex,FindReaderSubmatchIndex,FindString,FindStringIndex,FindStringSubmatch,FindStringSubmatchIndex,FindSubmatch,FindSubmatchIndex,LiteralPrefix,Longest,Match,MatchReader,MatchString,NumSubexp,ReplaceAll,ReplaceAllFunc,ReplaceAllLiteral,ReplaceAllLiteralString,ReplaceAllString,ReplaceAllStringFunc,Split,String,SubexpIndex,SubexpNames,allMatches,backtrack,doExecute,doMatch,doOnePass,expand,get,pad,put,replaceAll,tryBacktrack"},
    33  		},
    34  		AliasTypes: map[string]reflect.Type{},
    35  		Vars:       map[string]reflect.Value{},
    36  		Funcs: map[string]reflect.Value{
    37  			"Compile":          reflect.ValueOf(q.Compile),
    38  			"CompilePOSIX":     reflect.ValueOf(q.CompilePOSIX),
    39  			"Match":            reflect.ValueOf(q.Match),
    40  			"MatchReader":      reflect.ValueOf(q.MatchReader),
    41  			"MatchString":      reflect.ValueOf(q.MatchString),
    42  			"MustCompile":      reflect.ValueOf(q.MustCompile),
    43  			"MustCompilePOSIX": reflect.ValueOf(q.MustCompilePOSIX),
    44  			"QuoteMeta":        reflect.ValueOf(q.QuoteMeta),
    45  		},
    46  		TypedConsts:   map[string]gossa.TypedConst{},
    47  		UntypedConsts: map[string]gossa.UntypedConst{},
    48  	})
    49  }