Documentation ¶
Index ¶
Constants ¶
View Source
const ExtraPadding = DefaultInitialPadding * 2
ExtraPadding is the double of the DefaultInitialPadding.
Variables ¶
This section is empty.
Functions ¶
func Log ¶
func Log(title string, next middleware.Action, padding Padding) middleware.Action
Log pretty prints the given action and its title. You can have different padding levels by providing different initial paddings. The middleware will print the title in the given padding and the action logs in padding+default padding. The default padding in the log library is 3. The middleware always resets to the default padding.
Types ¶
Click to show internal directories.
Click to hide internal directories.