Documentation ¶
Overview ¶
Package utils contains utility functions used by the other task-cluster-go packages, such as string manipulation functions and other utility methods.
Index ¶
- func Comment(text, indent string) string
- func ExitOnFail(err error)
- func Indent(text, indent string) string
- func Normalise(name string, dict map[string]bool) string
- func NormaliseLower(name string, dict map[string]bool) string
- func Underline(text string) string
- func WriteStringToFile(content, file string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Comment ¶
Comments (Java-style) a block of text, with the given indentation (white-space prefix).
func ExitOnFail ¶
func ExitOnFail(err error)
func Indent ¶
indents a block of text with an indent string, see http://play.golang.org/p/nV1_VLau7C
func WriteStringToFile ¶
func WriteStringToFile(content, file string)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.