pkg

package module
v0.0.0-...-e56f5d9 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

README

pkg

Collection of common packages

Documentation

Index

Constants

View Source
const (
	Second = time.Second
	Minute = time.Minute
	Hour   = time.Hour
	Day    = 24 * time.Hour
	Week   = 7 * Day
	Month  = 4 * Week
	Year   = 12 * Month
)

Variables

This section is empty.

Functions

func ConfigMaxprocs

func ConfigMaxprocs()

func FileExist

func FileExist(filepath string) bool

FileExist checks if a file exists at filePath.

Types

type HumaneDuration

type HumaneDuration time.Duration

HumaneDuration is a pretty printed version of a time.Duration value

func (HumaneDuration) String

func (d HumaneDuration) String() string

type HumaneTime

type HumaneTime time.Time

HumaneTime is a pretty printed version of a time.Time value

func (HumaneTime) String

func (t HumaneTime) String() string

type Table

type Table struct {
	// contains filtered or unexported fields
}

func NewTable

func NewTable(w io.Writer) *Table

func (*Table) SetBorder

func (d *Table) SetBorder(isSetBorder bool)

func (*Table) SetHeader

func (d *Table) SetHeader(header []string)

func (*Table) Write

func (d *Table) Write(data [][]string)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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