Documentation ¶
Index ¶
Constants ¶
View Source
const ( MaxContentLines = 50 SnipMark = "----- cut at 50 entries -----" )
Variables ¶
View Source
var ( DidSnip bool DidAvoidEmptyBlock bool )
Functions ¶
func PrintBlock ¶
Prints a block of information with the given headline If content is empty, printing the headline is omitted. If the content is longer than MaxContentLines, content is cut.
func RegisterFile ¶
Registers a file with the given name and content. This function takes care of filesystem I/O handling and flag parsing. This means that a module should _always_ call this function when a file is encountered. origin is a descriptive string where the file comes from, e.g. the module name.
func RegisterFlags ¶
func RegisterFlags()
func StoreFiles ¶
func StoreFiles()
Iterates over all registered files and checks if they should be extracted and stored, and does exactly that.
Types ¶
Click to show internal directories.
Click to hide internal directories.