extensions

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2024 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddPercentEncodingPath

func AddPercentEncodingPath(raw string) string

func AddToSet

func AddToSet(s []string, e string) []string

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 IsHiddenOrThumbs(filename string) bool

func Pointer

func Pointer[T any](val T) *T

func RemovePercentEncoding

func RemovePercentEncoding(raw string) string

func ToUrlOrNull

func ToUrlOrNull(raw string) *url.URL

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

Jump to

Keyboard shortcuts

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