logging

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 1, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultInitialPadding is the default padding in the log library.
	DefaultInitialPadding = 3
	// ExtraPadding is the double of the DefaultInitialPadding.
	ExtraPadding = DefaultInitialPadding * 2
)

Variables

This section is empty.

Functions

func Log

func Log(title string, next Action) error

Log pretty prints the given action and its title.

Types

type Action

type Action func() error

Action is a function that returns error

type Padding

type Padding int

Padding for logs

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL