helpers

package
v0.0.180 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DirectoryExists

func DirectoryExists(path string) bool

func Duration

func Duration(d time.Duration, dicimal int) time.Duration

func FileExists

func FileExists(path string) bool

func HasPipedStdin

func HasPipedStdin() bool

HasPipedStdin returns if stdin has piped input

func MakeSimpleTable added in v0.0.145

func MakeSimpleTable(out io.Writer, headings []string) (table *tablewriter.Table)

func MkdirAll

func MkdirAll(pathname string) error

func PathRelativeToCWD

func PathRelativeToCWD(path string) string

func ReadStdin

func ReadStdin(maxLength int) (string, error)

func WrapString added in v0.0.136

func WrapString(s string, lim uint, indent int) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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