Documentation ¶
Overview ¶
Package util provides various things used by other packages in this module.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ByteLowercase ¶
ByteLowercase returns a byte-lowercase version of str.
func Errorf ¶
Errorf is similar to fmt.Errorf, but the message of the resulting error is prefixed with "cors: ".
func InvalidOriginPatternErr ¶
InvalidOriginPatternErr returns an error about invalid origin pattern str.
func Join ¶
func Join(w io.StringWriter, strs []string)
Join joins the elements of strs in a human-friendly way and writes the result to w.
func NewError ¶
NewError is similar to errors.New, but the message of the resulting error is prefixed with "cors: ".
Types ¶
Click to show internal directories.
Click to hide internal directories.