Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloneURL ¶
CloneURL clones a url. Copied directly from net/http internals See: https://github.com/golang/go/blob/go1.19/src/net/http/clone.go#L22
func HTTPResponseError ¶
HTTPResponseError extracts any error from a response, or returns nil if there is no error
func SanitiseImageURL ¶
SanitiseImageURL removes all extensions but the final extension from images urls. Some image urls contain additional '._modifier_.' extensions before the final extension. This function will strip these modifier extensions leaving the url of the original image.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.