Documentation
¶
Index ¶
- Variables
- func Bytes(anInt any) string
- func BytesCheck(anInt any) (string, error)
- func DumbTable(data string) string
- func DumbTable3(lines []string)
- func Duration(howLongWasThis any) string
- func DurationCheck(maybeTime any) (time.Duration, error)
- func FormatDuration(d time.Duration) string
- func FormatTime(t time.Time) string
- func FormatTimeLocal(t time.Time) string
- func GetBytes(anInt any) (int, error)
- func GetDuration(tookForever any) (time.Duration, error)
- func GetSince(maybeTime any) (*time.Duration, error)
- func GetTime(mightBeTimeMightNotBeTime any) (*time.Time, error)
- func HumanFormatBytes(b int) string
- func Int(maybeInt any) int
- func PrintTable(pb *guipb.Table)
- func PrintTableDebug(pb *guipb.Table)
- func PrintTableLimit(pb *guipb.Table, limit int, debug bool)
- func SimpleTable(data [][]string) string
- func SimpleTableSizes(data [][]string, sizes []int) string
- func SimpleTableSizesDebug(data [][]string, sizes []int) string
- func Since(aLongTimeAgo any) string
- func SinceCheck(mightBeRecently any) (string, error)
- func StandardTableRow(sizes []int, args []string) (string, string)
- func StandardTableRowDebug(sizes []int, args []string) (string, string)
- func StandardTableSize10(sizes []int, args []string) string
- func TerminalChomp(cut string) string
- func Time(someTimeAgoOrLaterNotsure any) string
- func TimeCheck(maybeTime any) (string, *time.Time, error)
- func TimeLocal(someTimeAgoOrLaterNotsure any) string
Constants ¶
This section is empty.
Variables ¶
View Source
var Broken error = errors.New("something is broken")
View Source
var IsBlank error = errors.New("var was blank")
View Source
var IsNil error = errors.New("was sent nil")
View Source
var NewFeature error = errors.New("feature is new and did not work")
View Source
var NoBytes error = errors.New("could not find bytes")
View Source
var NoDuration error = errors.New("could not find a duration")
View Source
var NoTime error = errors.New("could not find a time")
View Source
var TERMSIZE int = 80
View Source
var Unimplemented error = errors.New("not yet implemented")
View Source
var WIDTH int = 120
Functions ¶
func BytesCheck ¶ added in v0.0.18
returns a human readable string of the bytes also returns the error if there was one
func DumbTable3 ¶ added in v0.0.26
func DumbTable3(lines []string)
func FormatDuration ¶ added in v0.0.18
this math isn't perfect but I don't care right now use time.
func FormatTime ¶ added in v0.0.19
there is only one way to display the time as text this is that way. Don't like it? Don't use COBOL
func FormatTimeLocal ¶ added in v0.0.21
func HumanFormatBytes ¶ added in v0.0.18
This isn't for the marketing department so this isn't going to use 'MiB' and 'GiB'
func PrintTable ¶ added in v0.0.6
func PrintTableDebug ¶ added in v0.0.33
func PrintTableLimit ¶ added in v0.0.25
limits the number of out lines
func SimpleTable ¶ added in v0.0.30
func SimpleTableSizes ¶ added in v0.0.30
func SimpleTableSizesDebug ¶ added in v0.0.30
func SinceCheck ¶ added in v0.0.18
returns a human readable duration also returns errors
func StandardTableRow ¶ added in v0.0.7
returns the line and the Sprintf fmt string
func StandardTableRowDebug ¶ added in v0.0.9
func StandardTableSize10 ¶
func TerminalChomp ¶ added in v0.0.3
like the perl Chomp but with the terminal width
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.