util

package
v0.12.9 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Border

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

func Contains

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

func CreateFile

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

func Digits

func Digits(n int) int

func Exists

func Exists(p string) (bool, error)

func Int

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

type Version string

func (Version) Newer

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