Documentation
¶
Index ¶
- Constants
- Variables
- func ColorError(name string) string
- func ColorHeading(name string) string
- func ColorName(name string) string
- func ColorPath(name string) string
- func ColorTypeName(name string) string
- func ColorValue(name string) string
- func ColoredOptions(options []string, colorizer Colorizer) string
- func EnableColor()
- func IndentString(indent int) string
- func Options(options []string) string
- func PrintIndent(indent int)
- type Colorizer
- type TreePrefix
Constants ¶
View Source
const IndentSpaces = 2
Variables ¶
View Source
var Indent = strings.Repeat(" ", IndentSpaces)
View Source
var Quiet bool = false
View Source
var Stderr io.Writer = os.Stderr
View Source
var Stdout io.Writer = os.Stdout
Functions ¶
func ColorError ¶
func ColorHeading ¶
func ColorTypeName ¶
func ColorValue ¶
func ColoredOptions ¶
func EnableColor ¶
func EnableColor()
func IndentString ¶
func PrintIndent ¶
func PrintIndent(indent int)
Types ¶
type TreePrefix ¶
type TreePrefix []bool
func (TreePrefix) Print ¶
func (self TreePrefix) Print(indent int, last bool)
Click to show internal directories.
Click to hide internal directories.