# Functions
CamelToDashed converts a CamelCaseIdentifier to a dash-separated-identifier, or a camelCaseIdentifier to a -dash-separated-identifier.
Catch tries to catch an error thrown by Throw and stop the panic.
CeilDiv computes ceil(float(a)/b) without using float arithmetics.
ClaimFile takes a directory and a pattern string containing exactly one asterisk (e.g.
DeepPrint is like printing with the %#v formatter of fmt, but it prints pointer fields recursively.
DoesntThrow returns whether calling f does not throw anything.
DontSearch determines whether the path to an external command should be taken literally and not searched.
Errors concatenate multiple errors into one.
FindContext takes a position in a text and finds its line number, corresponding line and column numbers.
FindFirstEOL returns the index of the first '\n'.
FindLastSOL returns an index just after the last '\n'.
ForceWcwidth forces the string s to the given display width by trimming and padding.
FullNames returns the full names of non-hidden files under a directory.
GetHome finds the home directory of a specified user.
GetLogger gets a logger with a prefix.
Getwd returns path of the working directory in a format suitable as the prompt.
HasSubseq determines whether s has t as its subsequence.
InTempDir is like WithTempDir, but also cd into the directory before running the function, and cd backs after running the function if possible.
IsExecutable determines whether path refers to an executable file.
MatchSubseq returns whether pattern is a subsequence of s.
NewSourceRange creates a new SourceRange.
NthRune returns the n-th rune of s.
OverrideWcwidth overrides the wcwidth of a rune to be a specific non-negative value.
PCall calls a function and catches anything Thrown'n and returns it.
PprintError pretty-prints an error if it implements Pprinter, and prints it in bold and red otherwise.
SetOutput redirects the output of all loggers obtained with GetLogger to the new io.Writer.
SetOutputFile redirects the output of all loggers obtained with GetLogger to the named file.
SubstringByRune returns the range of the i-th rune (inclusive) through the j-th rune (exclusive) in s.
Throw panics with err wrapped properly so that it can be catched by Catch.
Throws returns whether calling f throws out a certain error (using Throw).
ThrowsAny returns whether calling f throws out anything that is not nil.
TildeAbbr abbreviates the user's home directory to ~.
TrimEachLineWcwidth trims each line of s so that it is no wider than the specified width.
TrimWcwidth trims the string s so that it has a width of at most wmax.
UnoverrideWcwidth removes the override of a rune.
Wcswidth returns the width of a string when displayed on the terminal, assuming no soft line breaks.
Wcwidth returns the width of a rune when displayed on the terminal.
WithTempDir is like with WithTempDirs, except that it always creates one temporary directory and pass the function a string instead of []string.
WithTempDirs creates a requested number of temporary directories and runs a function, passing the paths of the temporary directories; the passed paths all have their symlinks resolved using filepath.EvalSymlinks.
# Variables
Variables controlling the style of the culprit.
Variables controlling the style of the culprit.
Variables controlling the style of the culprit.
ErrClaimFileBadPattern is thrown when the pattern argument passed to ClaimFile does not contain exactly one asterisk.
ErrIndexOutOfRange is returned when out-of-range errors occur.
# Structs
MultiError pack multiple errors into one error.
SourceRange is a range of text in a source code.
Thrown wraps an error that was raised by Throw, so that it can be recognized by Catch.
# Interfaces
Pprinter wraps the Pprint function.