utils

package
v0.0.0-...-9afb6c3 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Proxy = _proxy{}

Functions

func CamelToSnake

func CamelToSnake(input string) string

func ExecutableDir

func ExecutableDir() string

func Filter

func Filter[T any](slice []T, predicate func(T) bool) []T

func Find

func Find[T any](slice []T, predicate func(T) bool) (T, bool)

func Map

func Map[T any, U any](slice []T, mapper func(T) U) []U

func PathExists

func PathExists(path string) (bool, error)

func Ptr

func Ptr[T any](t T) *T

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳