Documentation
¶
Overview ¶
Package console 提供了一些命令行工具的简单封装
Deprecated: 请使用 log 包替代 (github.com/Andrew-M-C/go.util/log)
Reference:
- [How can I print to Stderr in Go without using log](https://stackoverflow.com/questions/29721449/how-can-i-print-to-stderr-in-go-without-using-log)
Index ¶
- func Debugf(f string, a ...interface{}) (int, error)
- func Errorf(f string, a ...interface{}) (int, error)
- func PrintTables(tab [][]string, opts ...Option) error
- func Printf(f string, a ...interface{}) (int, error)
- func ReadOptions(description string, options []string) (selection map[int]string, err error)
- func SetDebug(on bool)
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadOptions ¶
ReadOptions 给几个选项给用户并返回用户的选择
Types ¶
Click to show internal directories.
Click to hide internal directories.