Documentation
¶
Index ¶
- func DecompressGzipped(r io.Reader) ([]byte, error)
- func DecompressGzippedBytes(data []byte) ([]byte, error)
- func DedupeStrings(input []string) []string
- func GetHostname() string
- func GetOutboundIP() net.IP
- func IsMIMETypeInHierarchy(m *mimetype.MIME, expectedMIME string) bool
- func MustDecompressGzippedBytes(data []byte) []byte
- func Pointer[T any](d T) *T
- func StringContainsSliceElements(target string, slice []string) bool
- func StringSliceToURLSlice(rawURLs []string) (URLs []*url.URL)
- type TAtomBool
- type Version
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecompressGzippedBytes ¶
func DedupeStrings ¶
DedupeStrings take a slice of string and dedupe it
func GetHostname ¶
func GetHostname() string
func GetOutboundIP ¶
Note: GetOutboundIP does not establish any connection and the destination does not need to exist for this function to work.
func IsMIMETypeInHierarchy ¶
IsMIMETypeInHierarchy recursively checks if the MIME type and its parents match the expected MIME type
func StringContainsSliceElements ¶
StringContainsSliceElements if the string contains one of the elements of a slice
func StringSliceToURLSlice ¶
StringSliceToURLSlice takes a slice of string and return a slice of url.URL
Types ¶
Click to show internal directories.
Click to hide internal directories.