package
Version:
v0.14.1-0...-8b31b97
Opens a new window with list of versions in this module.
Published: Mar 13, 2021
License: Apache-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package prefixgen is a prefix generation helper for log messages
and any other kind.
Option configures Prefixer.
Color sets color to the prefix.
Common holds some common prefix options and extends those
options by given options.
SpaceRight adds rights space to the prefix.
SquareBrackets adds square brackets to the prefix.
Uppercase formats the prefix to uppercase.
Prefixer generates prefixes.
New creates a new Prefixer with format and options.
Format is an fmt.Sprintf() like format to dynamically create prefix texts
as needed.
Gen generates a new prefix by applying s to format given during New().
Source Files
¶
Click to show internal directories.
Click to hide internal directories.