Documentation ¶
Index ¶
- func DisableViewportKeys(viewport viewport.Model) viewport.Model
- func EnsureExists(file string) (*os.File, error)
- func Map[T, V any](ts []T, fn func(T) V) []V
- func Or(left string, right int) int
- func Remove[T any](slice []T, s int) []T
- func RenameFolder(folder string, name string)
- func Swap[T any](slice []T, index1, index2 int) []T
- func ToHashFunction(value string) otp.Algorithm
- func ToInt(str string) int
- func ValidateSecret(secret string) bool
- func Validator(input textinput.Model, function textinput.ValidateFunc) textinput.Model
- func ValidatorInteger(input textinput.Model) textinput.Model
- func ValidatorIntegerNo0(input textinput.Model) textinput.Model
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DisableViewportKeys ¶
Disables the letter keys to prevent moving of viewport with the typing
func EnsureExists ¶
Ensures if the directory for the file exists, and then creates the file
func RenameFolder ¶
func ToHashFunction ¶
func ValidatorInteger ¶
Validator for checking the value is an integer
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.