Documentation
¶
Index ¶
- func Contains[T comparable](data []T, elem T) bool
- func Filter[T any](data []T, f func(T) bool) []T
- func GetBasePath() string
- func GetStack(err *errors.Error, colors bool) string
- func MapOver[T, U any](data []T, f func(T) U) []U
- func Span(ctx context.Context, name string, f func(ctx context.Context) error) error
- func WithTx(ctx context.Context, client *ent.Client, fn func(tx *ent.Tx) error) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Contains ¶
func Contains[T comparable](data []T, elem T) bool
func GetBasePath ¶
func GetBasePath() string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.