github.com/goplus/igop@v0.25.0/pkg/text/tabwriter/go116_export.go (about)

     1  // export by github.com/goplus/igop/cmd/qexp
     2  
     3  //+build go1.16,!go1.17
     4  
     5  package tabwriter
     6  
     7  import (
     8  	q "text/tabwriter"
     9  
    10  	"go/constant"
    11  	"reflect"
    12  
    13  	"github.com/goplus/igop"
    14  )
    15  
    16  func init() {
    17  	igop.RegisterPackage(&igop.Package{
    18  		Name: "tabwriter",
    19  		Path: "text/tabwriter",
    20  		Deps: map[string]string{
    21  			"io":           "io",
    22  			"unicode/utf8": "utf8",
    23  		},
    24  		Interfaces: map[string]reflect.Type{},
    25  		NamedTypes: map[string]reflect.Type{
    26  			"Writer": reflect.TypeOf((*q.Writer)(nil)).Elem(),
    27  		},
    28  		AliasTypes: map[string]reflect.Type{},
    29  		Vars:       map[string]reflect.Value{},
    30  		Funcs: map[string]reflect.Value{
    31  			"NewWriter": reflect.ValueOf(q.NewWriter),
    32  		},
    33  		TypedConsts: map[string]igop.TypedConst{
    34  			"AlignRight":          {reflect.TypeOf(q.AlignRight), constant.MakeInt64(int64(q.AlignRight))},
    35  			"Debug":               {reflect.TypeOf(q.Debug), constant.MakeInt64(int64(q.Debug))},
    36  			"DiscardEmptyColumns": {reflect.TypeOf(q.DiscardEmptyColumns), constant.MakeInt64(int64(q.DiscardEmptyColumns))},
    37  			"FilterHTML":          {reflect.TypeOf(q.FilterHTML), constant.MakeInt64(int64(q.FilterHTML))},
    38  			"StripEscape":         {reflect.TypeOf(q.StripEscape), constant.MakeInt64(int64(q.StripEscape))},
    39  			"TabIndent":           {reflect.TypeOf(q.TabIndent), constant.MakeInt64(int64(q.TabIndent))},
    40  		},
    41  		UntypedConsts: map[string]igop.UntypedConst{
    42  			"Escape": {"untyped rune", constant.MakeInt64(int64(q.Escape))},
    43  		},
    44  	})
    45  }