github.com/goplus/igop@v0.25.0/pkg/text/tabwriter/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 tabwriter
     7  
     8  import (
     9  	q "text/tabwriter"
    10  
    11  	"go/constant"
    12  	"reflect"
    13  
    14  	"github.com/goplus/igop"
    15  )
    16  
    17  func init() {
    18  	igop.RegisterPackage(&igop.Package{
    19  		Name: "tabwriter",
    20  		Path: "text/tabwriter",
    21  		Deps: map[string]string{
    22  			"io":           "io",
    23  			"unicode/utf8": "utf8",
    24  		},
    25  		Interfaces: map[string]reflect.Type{},
    26  		NamedTypes: map[string]reflect.Type{
    27  			"Writer": reflect.TypeOf((*q.Writer)(nil)).Elem(),
    28  		},
    29  		AliasTypes: map[string]reflect.Type{},
    30  		Vars:       map[string]reflect.Value{},
    31  		Funcs: map[string]reflect.Value{
    32  			"NewWriter": reflect.ValueOf(q.NewWriter),
    33  		},
    34  		TypedConsts: map[string]igop.TypedConst{
    35  			"AlignRight":          {reflect.TypeOf(q.AlignRight), constant.MakeInt64(int64(q.AlignRight))},
    36  			"Debug":               {reflect.TypeOf(q.Debug), constant.MakeInt64(int64(q.Debug))},
    37  			"DiscardEmptyColumns": {reflect.TypeOf(q.DiscardEmptyColumns), constant.MakeInt64(int64(q.DiscardEmptyColumns))},
    38  			"FilterHTML":          {reflect.TypeOf(q.FilterHTML), constant.MakeInt64(int64(q.FilterHTML))},
    39  			"StripEscape":         {reflect.TypeOf(q.StripEscape), constant.MakeInt64(int64(q.StripEscape))},
    40  			"TabIndent":           {reflect.TypeOf(q.TabIndent), constant.MakeInt64(int64(q.TabIndent))},
    41  		},
    42  		UntypedConsts: map[string]igop.UntypedConst{
    43  			"Escape": {"untyped rune", constant.MakeInt64(int64(q.Escape))},
    44  		},
    45  	})
    46  }