Documentation
¶
Index ¶
- func AbortOn(errCase string, e error)
- func Abs(x int) int
- func Basename(s string) string
- func GetInputStream(fileName string) io.ReadCloser
- func GetOutputStream(fileName string) io.WriteCloser
- func IsExist(fileName string) bool
- func ReadInput(fileName string) []byte
- func Setup(p string, v int)
- func Verbose(levelSet int, format string, args ...interface{})
- func WarnOn(errCase string, e error) bool
- func Warning(m string)
- type OptsT
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetInputStream ¶ added in v1.5.3
func GetInputStream(fileName string) io.ReadCloser
GetInputStream will return the file reading handler to the given file, or stdin for "-". It'll abort the program if error occurs.
func GetOutputStream ¶ added in v1.5.3
func GetOutputStream(fileName string) io.WriteCloser
GetOutputStream will return the file writing handler to the given file, or stdout for "-". It'll abort the program if error occurs.
func ReadInput ¶ added in v1.5.3
ReadInput reads from the given file name (or "-" for stdin) and abort the program if error occurs.
Types ¶
Click to show internal directories.
Click to hide internal directories.