Documentation ¶
Index ¶
- Constants
- func ExtensionFromContentType(contentType string) (string, error)
- func RandomHexString(length int) (string, error)
- func RandomToken(length int) (string, error)
- func SQLQueryPlaceholders(length int) string
- func SliceFilter[T any](slice []T, cap int, predicate func(T) bool) []T
- func SliceFilterBackwards[T any](slice []T, cap int, predicate func(T) bool) []T
- func SlicePaginate[T any](slice []T, page, limit int) []T
- func SliceRemoveElement[T any](slice []T, index int) []T
- func SliceReverse[T any](slice []T) []T
- func ValidateURL(u string) error
Constants ¶
View Source
const ErrInvalidUrl = "specified url is not valid"
Variables ¶
This section is empty.
Functions ¶
func RandomHexString ¶
func RandomToken ¶
func SQLQueryPlaceholders ¶
func SliceFilter ¶
func SliceFilterBackwards ¶
func SlicePaginate ¶
func SliceRemoveElement ¶
func SliceReverse ¶
func SliceReverse[T any](slice []T) []T
func ValidateURL ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.