Documentation
¶
Index ¶
- func FuncEqual[F any](a, b F) bool
- func GetFunctionName(i any) string
- func IterAll[T any](i iter.Seq[T]) (items []T)
- func MustReadFile(filePath string) string
- func RecoverFromFunc[T any](f func() T) (r T, err error)
- func SliceDelete[T comparable](s []T, item T) []T
- func SliceSafeGet[T any](s []T, index int) (t T)
- type Stack
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFunctionName ¶
GetFunctionName see: https://stackoverflow.com/questions/7052693/how-to-get-the-name-of-a-function-in-go
func MustReadFile ¶
func RecoverFromFunc ¶
RecoverFromFunc is a function that recovers from a function panic
func SliceDelete ¶
func SliceDelete[T comparable](s []T, item T) []T
SliceDelete removes the first occurrence of item from the slice.
func SliceSafeGet ¶
SliceSafeGet returns the element at the given index in the slice.
Types ¶
Click to show internal directories.
Click to hide internal directories.