DescribeBytes converts bytes to KiB or MiB. Returns a string.
DurationToMS converts time.Duration to milliseconds, as a string, (just the number as a string, no "ms" suffix).
ExtractKeywords takes a source file as `data` and a list of keywords to
* look for. Lines without keywords are returned, together with a map * from keywords to bytes from the source `data`. * * The keywords in the data must be on the form "keyword: value", * and can be within single-line HTML comments (<-- ... -->).
FilterIntoGroups filters byte slices into two groups, depending on the given filter function
GetDomain returns the domain of a request (up to ":", if any)
GetFilenames retrieves a list of filenames from a given directory name (that must exist)
Infostring builds up a string on the form "functionname(arg1, arg2, arg3)"
ReadString returns the contents of the given filename as a string. Does not use the cache. Returns an empty string if there were errors.
RecorderToString discards the HTTP headers and return the recorder body as a string. Also flushes the recorder.
URL2filename translates a given URL path to a probable full filename
WriteRecorder writes to a ResponseWriter from a ResponseRecorder. Also flushes the recorder and returns how many bytes were written.
WriteStatus writes status messages to a string Builder The flags argument contains the flag names, and if they are enabled or not