log

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Customise

func Customise(cfg Configuration)

func Err

func Err(msg string, args ...interface{})

func Info

func Info(msg string, args ...interface{})

func Init

func Init(name string)

func Warn

func Warn(msg string, args ...interface{})

Types

type Configuration

type Configuration struct {
	Namespace string
	TimeFmt   string
	InfoStyle Style
	WarnStyle Style
	ErrStyle  Style
}

type Style

type Style struct {
	Emoji  string
	Bold   *color.Color
	Italic *color.Color
	Plain  *color.Color
}

func NewStyle

func NewStyle(c color.Attribute, emojiStr string) Style

func (Style) Sprintf

func (s Style) Sprintf(msg string, args ...interface{}) string

func (Style) Write

func (s Style) Write(tw *tabwriter.Writer, msg string, args ...interface{})

Jump to

Keyboard shortcuts

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