github.com/goplus/igop@v0.25.0/pkg/regexp/go114_export.go (about)

     1  // export by github.com/goplus/igop/cmd/qexp
     2  
     3  //+build go1.14,!go1.15
     4  
     5  package regexp
     6  
     7  import (
     8  	q "regexp"
     9  
    10  	"reflect"
    11  
    12  	"github.com/goplus/igop"
    13  )
    14  
    15  func init() {
    16  	igop.RegisterPackage(&igop.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]reflect.Type{
    32  			"Regexp": reflect.TypeOf((*q.Regexp)(nil)).Elem(),
    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]igop.TypedConst{},
    47  		UntypedConsts: map[string]igop.UntypedConst{},
    48  	})
    49  }