github.com/goplus/igop@v0.25.0/pkg/go/build/constraint/go118_export.go (about)

     1  // export by github.com/goplus/igop/cmd/qexp
     2  
     3  //go:build go1.18 && !go1.19
     4  // +build go1.18,!go1.19
     5  
     6  package constraint
     7  
     8  import (
     9  	q "go/build/constraint"
    10  
    11  	"reflect"
    12  
    13  	"github.com/goplus/igop"
    14  )
    15  
    16  func init() {
    17  	igop.RegisterPackage(&igop.Package{
    18  		Name: "constraint",
    19  		Path: "go/build/constraint",
    20  		Deps: map[string]string{
    21  			"errors":       "errors",
    22  			"strings":      "strings",
    23  			"unicode":      "unicode",
    24  			"unicode/utf8": "utf8",
    25  		},
    26  		Interfaces: map[string]reflect.Type{
    27  			"Expr": reflect.TypeOf((*q.Expr)(nil)).Elem(),
    28  		},
    29  		NamedTypes: map[string]reflect.Type{
    30  			"AndExpr":     reflect.TypeOf((*q.AndExpr)(nil)).Elem(),
    31  			"NotExpr":     reflect.TypeOf((*q.NotExpr)(nil)).Elem(),
    32  			"OrExpr":      reflect.TypeOf((*q.OrExpr)(nil)).Elem(),
    33  			"SyntaxError": reflect.TypeOf((*q.SyntaxError)(nil)).Elem(),
    34  			"TagExpr":     reflect.TypeOf((*q.TagExpr)(nil)).Elem(),
    35  		},
    36  		AliasTypes: map[string]reflect.Type{},
    37  		Vars:       map[string]reflect.Value{},
    38  		Funcs: map[string]reflect.Value{
    39  			"IsGoBuild":      reflect.ValueOf(q.IsGoBuild),
    40  			"IsPlusBuild":    reflect.ValueOf(q.IsPlusBuild),
    41  			"Parse":          reflect.ValueOf(q.Parse),
    42  			"PlusBuildLines": reflect.ValueOf(q.PlusBuildLines),
    43  		},
    44  		TypedConsts:   map[string]igop.TypedConst{},
    45  		UntypedConsts: map[string]igop.UntypedConst{},
    46  	})
    47  }