util

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Version is the happy version
	Version = "undefined"
	// GitSha is the gitsha used to build this version
	GitSha = "undefined"
	// Release is true if this is a release
	Release = "false"
	// Dirty if git is dirty
	Dirty = "true"
)

Functions

func Max

func Max(x, y int) int

func TagValueToString added in v0.3.0

func TagValueToString(value interface{}) string

func VersionCacheKey

func VersionCacheKey() string

VersionCacheKey returns a key to version the cache

func VersionString

func VersionString() (string, error)

VersionString returns the version string

Types

type DirProcessor

type DirProcessor interface {
	Tarzip(src string, f *os.File) error
}

type LocalProcessor

type LocalProcessor struct{}

func NewLocalProcessor

func NewLocalProcessor() *LocalProcessor

func (*LocalProcessor) Tarzip

func (s *LocalProcessor) Tarzip(src string, f *os.File) error

type TablePrinter

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

func NewTablePrinter

func NewTablePrinter(headings []string) *TablePrinter

func (*TablePrinter) AddRow

func (s *TablePrinter) AddRow(data []string)

func (*TablePrinter) BumpWidth

func (s *TablePrinter) BumpWidth(data []string)

func (*TablePrinter) Print

func (s *TablePrinter) Print()

Jump to

Keyboard shortcuts

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