Versions in this module Expand all Collapse all v1 v1.0.0 Oct 8, 2022 Changes in this version + var SysVarPrintFormatKey string = "sys.printfmt" + func AskYesNo(msg string, def string) int + func Bytes2StrLit(b []byte) string + func Bytes2hex(s []byte) string + func ContextWithProp(ctx context.Context, p *properties.Properties) context.Context + func ExtractIshellContext(ctx context.Context) *ishell.Context + func GetArgsAndOptionFlag(rawArgs []string) ([]string, []string) + func GetStringLit(raw string) ([]byte, error) + func HasForceYes(ctx context.Context) bool + func Hexstr2bytes(hexStr string) ([]byte, error) + func InitBuiltinVaribles() + func IsStringLit(raw string) bool + func IsVar(s string) bool + func NextKey(k []byte) []byte + func OutputWithElapse(f func() error) error + func Print(a ...interface{}) + func PrintGlobalVaribles() + func PrintSysVaribles() + func PrintTable(data [][]string) + func PropFromContext(ctx context.Context) *properties.Properties + func SetOptByString(ss []string, props *properties.Properties) error + func SysVarGet(varname string) (string, bool) + func SysVarSet(varname, val string) + func VarGet(varname string) ([]byte, bool) + func VarSet(varname string, val []byte) + type ProgressReader struct + func NewProgressReader(r io.Reader, total int64) *ProgressReader + func OpenFileToProgressReader(fname string) (*os.File, *ProgressReader, error) + func (pr *ProgressReader) Error() error + func (pr *ProgressReader) GetProgress() float64 + func (pr *ProgressReader) Read(b []byte) (int, error) + type StrLitType int + const StrLitHex + const StrLitNormal