Documentation ¶
Index ¶
- func Absolute[T int | int8 | int16 | int32 | int64 | float32 | float64](value T) T
- func ArrayContains[T ~string | int | int8 | int16 | int32 | int64 | float32 | float64](set []T, value T) bool
- func CheckIfFilesExists(files ...string) error
- func Concurrent[T any](ctx context.Context, array []T, concurrency int, execute func(one T) error) error
- func ConcurrentC[T any](ctx context.Context, yield <-chan T, concurrency int, ...) error
- func FindInArray[T any](set []T, match func(elem T) bool) (int, bool)
- func IsInstance(val any, typ reflect.Kind) bool
- func IsOfType(object interface{}, decidingKey string) (bool, error)
- func IsSubset[T comparable](setArray, subsetArray []T) bool
- func MaxDate(v1, v2 time.Time) time.Time
- func Unmarshal(from interface{}, object interface{}) error
- func UnmarshalFile(file string, dest any) error
- func Validate[T any](structure T) error
- func Yield[T any](generate func(channel chan<- T)) <-chan T
- type Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArrayContains ¶
func CheckIfFilesExists ¶
func Concurrent ¶
func ConcurrentC ¶ added in v0.0.2
func IsSubset ¶
func IsSubset[T comparable](setArray, subsetArray []T) bool
func Unmarshal ¶
func Unmarshal(from interface{}, object interface{}) error
Unmarshal serializes and deserializes any from into the object return error if occurred
func UnmarshalFile ¶
Types ¶
type Logger ¶
type Logger interface { Info(v ...interface{}) Infof(format string, v ...interface{}) Debug(v ...interface{}) Debugf(format string, v ...interface{}) Error(v ...interface{}) Fatal(v ...interface{}) Fatalf(format string, v ...interface{}) Errorf(format string, v ...interface{}) Warn(v ...interface{}) Warnf(format string, v ...interface{}) }
Click to show internal directories.
Click to hide internal directories.