helper

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildName

func BuildName(parts ...string) string

func Concat

func Concat[T any](slices ...[]T) []T

func FindBy

func FindBy[T any](slice []T, predicate func(T) bool) (*T, bool)

func FindFile

func FindFile(filename string) (string, error)

func FindJsonField

func FindJsonField(value reflect.Value, key string) reflect.Value

func MapToStruct

func MapToStruct[T any](data map[string]interface{}, target T) T

func MergeDeep

func MergeDeep(a map[string]interface{}, b map[string]interface{}) map[string]interface{}

func Repeat

func Repeat(s string, count int) string

func WaitFor

func WaitFor(wg *sync.WaitGroup) chan bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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