Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DebugPrint ¶ added in v0.1.7
DebugPrint is a helper function that prints a string to a writer.
Parameters:
- w: the writer to write to.
- title: the title of the debug message. If empty, no title is printed.
- lines: the lines of the debug message. If nil, no lines are printed.
Returns:
- error: the error that occurred.
Errors:
- io.ErrShortWrite: if the writer is nil or the lines could not be written fully.
- any other error returned by the writer.
func LogPrint ¶ added in v0.1.8
LogPrint acts as DebugPrint but with a logger instead.
Parameters:
- l: the logger to write to.
- title: the title of the debug message. If empty, no title is printed.
- lines: the lines of the debug message. If nil, no lines are printed.
Returns:
- error: the error that occurred.
Errors:
- io.ErrShortWrite: if the writer is nil or the lines could not be written fully.
- any other error returned by the logger.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.