util

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsToday

func IsToday(input time.Time) bool

IsToday - returns true if the input time is on today's date

func ShortenPath

func ShortenPath(path string) string

ShortenPath - returns a shortened path

func StripColor

func StripColor(str string) string

StripColor - strips ANSI color codes from string

func TerminalWidth

func TerminalWidth() int

TerminalWidth - returns the width of the current terminal window

Types

This section is empty.

Jump to

Keyboard shortcuts

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