output

package
v0.0.0-...-faefad5 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2022 License: GPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// NORMAL Output in normal mode
	NORMAL = iota

	// VERBOSE Output in verbose mode
	VERBOSE
)

Variables

This section is empty.

Functions

func Print

func Print(l int, o string) (int, error)

Print formats using the default formats for its operands and writes to standard output. Spaces are added between operands when neither is a string. It returns the number of bytes written and any write error encountered. Only displays when log level is high enough

func PrintListing

func PrintListing(key, valuesString string, trail bool)

PrintListing formats a array into a list

func Printf

func Printf(l int, o string, a ...interface{}) (int, error)

Printf formats according to a format specifier and writes to standard output. It returns the number of bytes written and any write error encountered. Only displays when log level is high enough

func SetLevel

func SetLevel(level int)

SetLevel Set log level (NORMAL, VERBOSE)

func SetVerbose

func SetVerbose(v bool)

SetVerbose set verbose level

func UnixTime

func UnixTime(timestamp int64) *time.Time

UnixTime Format time

Types

This section is empty.

Jump to

Keyboard shortcuts

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