Documentation
¶
Index ¶
- func Bullet(msg string, v ...interface{}) string
- func Error(heading, body string) string
- func ErrorBody(body string, v ...interface{}) string
- func ErrorFoot() string
- func ErrorHead(heading string, v ...interface{}) string
- func GenerateNestedPrefix(level int) string
- func Marker(mark, msg string, v ...interface{}) string
- func Nest(level int, msg string) (rtn string)
- func ProcessEnd() string
- func ProcessStart(msg string, v ...interface{}) string
- func SubBullet(msg string, v ...interface{}) string
- func Warning(body string, v ...interface{}) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Bullet ¶
Bullet styles and prints a message as outlined at: http://nanodocs.gopagoda.io/engines/style-guide#bullet-points
Usage: Bullet "i am a bullet"
Output: + i am a bullet
func Error ¶
Error styles and prints a message as outlined at: http://nanodocs.gopagoda.io/engines/style-guide#fatal_errors
Usage: Error "nuclear launch detected", "All your base are belong to us"
Output: ::::::::::::: NUCLEAR LAUNCH DETECTED!!!
All your base are belong to us ¶
::::::::::::::::::::::::::::::::::::::::
func ErrorBody ¶
ErrorBody styles and prints an error body as outlined at: http://nanodocs.gopagoda.io/engines/style-guide#fatal_errors
Usage: ErrorBody "All your base are belong to us"
Output: All your base are belong to us
func ErrorFoot ¶
func ErrorFoot() string
ErrorFoot styles and prints an error body as outlined at: http://nanodocs.gopagoda.io/engines/style-guide#fatal_errors
Usage: ErrorFoot())
Output: ::::::::::::::::::::::::::::::::::::::::
func ErrorHead ¶
ErrorHead styles and prints an error heading as outlined at: http://nanodocs.gopagoda.io/engines/style-guide#fatal_errors
Usage: ErrorHead "nuclear launch detected"
Output: ::::::::::::: NUCLEAR LAUNCH DETECTED!!!
func GenerateNestedPrefix ¶
GenerateNestedPrefix will generate a prefix string of spaces to match the specified depth level
func Marker ¶
Marker is the root for Bullet/SubBullet; used alone, it allows for a custom mark to be specified
Usage: Maker "*", "i am a marker"
Output: * i am a marker
func Nest ¶
Nest is a generic nesting function that will generate the appropariate prefix based on the nest level
func ProcessEnd ¶
func ProcessEnd() string
ProcessEnd styles and prints a 'child process' as outlined at: http://nanodocs.gopagoda.io/engines/style-guide#child-process
Usage: ProcessEnd
Output: <new line>
func ProcessStart ¶
ProcessStart styles and prints a 'child process' as outlined at: http://nanodocs.gopagoda.io/engines/style-guide#child-process
Usage: ProcessStart "i am a process"
Output: + I am a process ------------------------------------------------------------ >
func SubBullet ¶
SubBullet styles and prints a message as outlined at: http://nanodocs.gopagoda.io/engines/style-guide#bullet-points
Usage: SubBullet "i am a sub bullet"
Output:
i am a sub bullet
func Warning ¶
Warning styles and prints a message as outlined at: http://nanodocs.gopagoda.io/engines/style-guide#warning
Usage: Warning "You just bought Hot Pockets!"
Output: ----------------------------- WARNING ----------------------------- You just bought Hot Pockets!
Types ¶
This section is empty.