Documentation ¶
Index ¶
- func AddPercentEncodingPath(raw string) string
- func AddToSet(s []string, e string) []string
- func AppendElementIfMissing[T comparable](slice []T, elem T) []T
- func AppendIfMissing[T comparable](slice []T, elems ...T) []T
- func Contains[T comparable](slice []T, element T) bool
- func DeduplicateAndMarshalJSON[T any](s []T) ([]json.RawMessage, error)
- func Equal[T comparable](a, b []T) bool
- func IsHiddenOrThumbs(filename string) bool
- func ParseDate(raw string) *time.Time
- func Pointer[T any](val T) *T
- func RemovePercentEncoding(raw string) string
- func ToUrlOrNull(raw string) *url.URL
- type EscapeError
- type InvalidHostError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddPercentEncodingPath ¶
func AppendElementIfMissing ¶
func AppendElementIfMissing[T comparable](slice []T, elem T) []T
func AppendIfMissing ¶
func AppendIfMissing[T comparable](slice []T, elems ...T) []T
func Contains ¶
func Contains[T comparable](slice []T, element T) bool
func DeduplicateAndMarshalJSON ¶
func DeduplicateAndMarshalJSON[T any](s []T) ([]json.RawMessage, error)
func Equal ¶
func Equal[T comparable](a, b []T) bool
func IsHiddenOrThumbs ¶
func ParseDate ¶
Parse DublinCore Date https://www.dublincore.org/specifications/dublin-core/dcmi-terms/elements11/date/
func RemovePercentEncoding ¶
func ToUrlOrNull ¶
Types ¶
type EscapeError ¶
type EscapeError string
func (EscapeError) Error ¶
func (e EscapeError) Error() string
type InvalidHostError ¶
type InvalidHostError string
func (InvalidHostError) Error ¶
func (e InvalidHostError) Error() string
Click to show internal directories.
Click to hide internal directories.