Documentation
¶
Index ¶
- Constants
- func Center(item any, width int) string
- func Digits(n int) int
- func FindJson[T any](path string, raw map[string]any, item *T) error
- func FormatMilliseconds(timestamp int64) string
- func FormatMillisecondsCompact(timestamp int64) string
- func Left(item any, width int) string
- func Max(a, b int) int
- func Min(a, b int) int
- func Right(item any, width int) string
- func SplitByRune(s string, sep rune) []string
- func SplitCommand(input string) ([]string, error)
- type Argument
- func (a Argument) Bool() (bool, bool)
- func (a Argument) Boold(def bool) bool
- func (a Argument) Float32() (float32, bool)
- func (a Argument) Float32d(def float32) float32
- func (a Argument) Float64() (float64, bool)
- func (a Argument) Float64d(def float64) float64
- func (a Argument) Int() (int, bool)
- func (a Argument) Int64() (int64, bool)
- func (a Argument) Int64d(def int64) int64
- func (a Argument) Intd(def int) int
- func (a Argument) String() string
- type CmdTuple
- type Table
- type Version
Constants ¶
View Source
const ESCAPE_RUNE = '\\'
View Source
const SEMVER = `^([a-zA-Z.]*?)?(\d+)(?:\.(\d+))?(?:\.(\d+))?(?:-([0-9A-Za-z.-]+))?$`
Variables ¶
This section is empty.
Functions ¶
func FormatMilliseconds ¶
func SplitByRune ¶
func SplitCommand ¶
Types ¶
type Argument ¶
type Argument struct {
// contains filtered or unexported fields
}
func ArgumentFrom ¶
type CmdTuple ¶
func NewCmdTuple ¶
Click to show internal directories.
Click to hide internal directories.