Files
moxa/stdlib/go1_16_text_tabwriter.go
Marc Vertes d16bd4bcdb interp: fix package name extraction from import path
The heuristic to generate a package name identifier was incorrect. Now for binary packages, the package identifier is obtained by a symbol, generated by extract, which contains the string argument of package statement in source file. This should ensure an always correct default package identifier. 

Fixes #1095.
2021-05-10 11:20:07 +02:00

30 lines
920 B
Go

// Code generated by 'yaegi extract text/tabwriter'. DO NOT EDIT.
// +build go1.16
package stdlib
import (
"go/constant"
"go/token"
"reflect"
"text/tabwriter"
)
func init() {
Symbols["text/tabwriter/tabwriter"] = map[string]reflect.Value{
// function, constant and variable definitions
"AlignRight": reflect.ValueOf(tabwriter.AlignRight),
"Debug": reflect.ValueOf(tabwriter.Debug),
"DiscardEmptyColumns": reflect.ValueOf(tabwriter.DiscardEmptyColumns),
"Escape": reflect.ValueOf(constant.MakeFromLiteral("255", token.INT, 0)),
"FilterHTML": reflect.ValueOf(tabwriter.FilterHTML),
"NewWriter": reflect.ValueOf(tabwriter.NewWriter),
"StripEscape": reflect.ValueOf(tabwriter.StripEscape),
"TabIndent": reflect.ValueOf(tabwriter.TabIndent),
// type definitions
"Writer": reflect.ValueOf((*tabwriter.Writer)(nil)),
}
}