util

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2021 License: MIT Imports: 12 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 GenerateTag

func GenerateTag(config config.HappyConfigIface) (string, error)

func Max

func Max(x, y int) int

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