util

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Border added in v0.9.0

func Border(str string, style lipgloss.Style) string

func Contains

func Contains[T comparable](slice []T, r T) bool

func CreateFile added in v0.8.0

func CreateFile(p string) (*os.File, error)

func Digits

func Digits(n int) int

func Exists added in v0.9.0

func Exists(p string) (bool, error)

func Int added in v0.6.0

func Int(v int) *int

func Max

func Max(x, y int) int

func PaddingRight

func PaddingRight(s string, l int) string

func String

func String(v string) *string

func TruncateString

func TruncateString(s string, l int) (string, bool)

Types

type Version added in v0.9.0

type Version string

func (Version) Newer added in v0.9.0

func (v Version) Newer(r Version) bool

Jump to

Keyboard shortcuts

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