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

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