timber

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultPrinterFn = func(display string) (interface{}, error) {
	log.Print(display)
	return display, nil
}
View Source
var DefaultResultFn = func(previousResult, currentItem interface{}) (interface{}, error) {
	return append(previousResult.([]string), currentItem.(string)), nil
}

Functions

func NewCustomPrinter

func NewCustomPrinter(printerFn PrinterFn, result interface{}, resultFn ResultFn) *customPrinter

func NewDefaultPrinter

func NewDefaultPrinter() *customPrinter

Types

type PrinterFn

type PrinterFn func(display string) (interface{}, error)

type ResultFn

type ResultFn func(previousResult, currentItem interface{}) (interface{}, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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