Documentation ¶
Overview ¶
package tty - utilities to work with terminals.
Index ¶
- Constants
- Variables
- func ByJSON(in []byte)
- func Error(v ...interface{})
- func Errorf(format string, v ...interface{})
- func Fatal(v ...interface{})
- func Fatalf(format string, v ...interface{})
- func Info(v ...interface{})
- func Infof(format string, v ...interface{})
- func JSON(in []byte) string
- func JSONcolor(in []byte) string
- func JSONline(in []byte) string
- func JSONstr(in string) string
- func Note(v ...interface{})
- func Notef(format string, v ...interface{})
- func OrigMode()
- func PPrint(in interface{})
- func PPrintln(v ...interface{})
- func PPstr(in interface{}) string
- func PrJSON(in string)
- func Print(v ...interface{})
- func Printf(format string, v ...interface{})
- func Println(v ...interface{})
- func RawMode()
- func SetFlags(flag int)
- func Warn(v ...interface{})
- func Warnf(format string, v ...interface{})
Constants ¶
View Source
const ( Ldate = 1 << iota // the date in the local time zone: 2009/01/23 Ltime // the time in the local time zone: 01:23:23 Lmicroseconds // microsecond resolution: 01:23:23.123123. assumes Ltime. Llongfile // full file name and line number: /a/b/c/d.go:23 Lshortfile // final file name element and line number: d.go:23. overrides Llongfile LUTC // if Ldate or Ltime is set, use UTC rather than the local time zone LstdFlags = Ldate | Ltime // initial values for the standard logger )
Variables ¶
View Source
var ( MaxSlice = 1024 MaxDepth = -1 ColSpan = 0 TabSize = 2 UintHex = false )
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.