Documentation
¶
Index ¶
- func All[T any](items []T, predicate func(T) bool) bool
- func Any[T any](items []T, predicate func(T) bool) bool
- func AnyCommandExists(cmds ...string) bool
- func AnyFlatpakExists(flatpaks ...string) bool
- func Clamp[T constraints.Ordered](val, min, max T) T
- func CommandExists(cmd string) bool
- func Contains[T comparable](items []T, target T) bool
- func ExpandPath(path string) (string, error)
- func Filter[T any](items []T, predicate func(T) bool) []T
- func Find[T any](items []T, predicate func(T) bool) (T, bool)
- func FlatpakExists(name string) bool
- func FlatpakInPath() bool
- func FlatpakInstallationDir(name string) (string, error)
- func FlatpakSearchBySubstring(substring string) bool
- func IsDBusServiceAvailable(busName string) bool
- func Map[T, U any](items []T, transform func(T) U) []U
- func XDGCacheHome() string
- func XDGConfigHome() string
- func XDGDataHome() string
- func XDGStateHome() string
- type AppChecker
- type DefaultAppChecker
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AnyCommandExists ¶
func AnyFlatpakExists ¶
func Clamp ¶
func Clamp[T constraints.Ordered](val, min, max T) T
func CommandExists ¶
func Contains ¶
func Contains[T comparable](items []T, target T) bool
func ExpandPath ¶
func FlatpakExists ¶
func FlatpakInPath ¶
func FlatpakInPath() bool
func FlatpakInstallationDir ¶
func IsDBusServiceAvailable ¶
func XDGCacheHome ¶
func XDGCacheHome() string
func XDGConfigHome ¶
func XDGConfigHome() string
func XDGDataHome ¶
func XDGDataHome() string
func XDGStateHome ¶
func XDGStateHome() string
Types ¶
type AppChecker ¶
type DefaultAppChecker ¶
type DefaultAppChecker struct{}
func (DefaultAppChecker) AnyCommandExists ¶
func (DefaultAppChecker) AnyCommandExists(cmds ...string) bool
func (DefaultAppChecker) AnyFlatpakExists ¶
func (DefaultAppChecker) AnyFlatpakExists(flatpaks ...string) bool
func (DefaultAppChecker) CommandExists ¶
func (DefaultAppChecker) CommandExists(cmd string) bool
func (DefaultAppChecker) FlatpakExists ¶
func (DefaultAppChecker) FlatpakExists(name string) bool
Click to show internal directories.
Click to hide internal directories.