util

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains added in v0.4.0

func Contains[T comparable](ts []T, t T) bool

func CreateDir

func CreateDir(dir string) error

func Exists

func Exists(p string) (bool, error)

func Filter added in v0.4.0

func Filter[T any](ts []T, f func(t T) bool) []T

func IsDir added in v0.10.0

func IsDir(p string) (bool, error)

func Some added in v0.4.0

func Some[T any](ts []T, f func(t T) bool) bool

func YesNo

func YesNo(msg string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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