github.com/goplus/gossa@v0.3.25/pkg/regexp/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 regexp
     7  
     8  import (
     9  	q "regexp"
    10  
    11  	"reflect"
    12  
    13  	"github.com/goplus/gossa"
    14  )
    15  
    16  func init() {
    17  	gossa.RegisterPackage(&gossa.Package{
    18  		Name: "regexp",
    19  		Path: "regexp",
    20  		Deps: map[string]string{
    21  			"bytes":         "bytes",
    22  			"io":            "io",
    23  			"regexp/syntax": "syntax",
    24  			"sort":          "sort",
    25  			"strconv":       "strconv",
    26  			"strings":       "strings",
    27  			"sync":          "sync",
    28  			"unicode":       "unicode",
    29  			"unicode/utf8":  "utf8",
    30  		},
    31  		Interfaces: map[string]reflect.Type{},
    32  		NamedTypes: map[string]gossa.NamedType{
    33  			"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"},
    34  		},
    35  		AliasTypes: map[string]reflect.Type{},
    36  		Vars:       map[string]reflect.Value{},
    37  		Funcs: map[string]reflect.Value{
    38  			"Compile":          reflect.ValueOf(q.Compile),
    39  			"CompilePOSIX":     reflect.ValueOf(q.CompilePOSIX),
    40  			"Match":            reflect.ValueOf(q.Match),
    41  			"MatchReader":      reflect.ValueOf(q.MatchReader),
    42  			"MatchString":      reflect.ValueOf(q.MatchString),
    43  			"MustCompile":      reflect.ValueOf(q.MustCompile),
    44  			"MustCompilePOSIX": reflect.ValueOf(q.MustCompilePOSIX),
    45  			"QuoteMeta":        reflect.ValueOf(q.QuoteMeta),
    46  		},
    47  		TypedConsts:   map[string]gossa.TypedConst{},
    48  		UntypedConsts: map[string]gossa.UntypedConst{},
    49  	})
    50  }