Documentation
¶
Index ¶
- Constants
- func AssertEqual(t testing.TB, expected interface{}, actual interface{}, description ...string)
- func EqualsFold(b, s []byte) (equals bool)
- func FunctionName(fn interface{}) string
- func GetBytes(s string) (bs []byte)
- func GetMIME(extension string) (mime string)
- func GetString(b []byte) string
- func ImmutableString(s string) string
- func StatusMessage(status int) string
- func ToLower(b string) string
- func ToLowerBytes(b []byte) []byte
- func ToUpper(b string) string
- func ToUpperBytes(b []byte) []byte
- func Trim(s string, cutset byte) string
- func TrimBytes(b []byte, cutset byte) []byte
- func TrimLeft(s string, cutset byte) string
- func TrimLeftBytes(b []byte, cutset byte) []byte
- func TrimRight(s string, cutset byte) string
- func TrimRightBytes(b []byte, cutset byte) []byte
- func UUID() string
Constants ¶
View Source
const MIMEOctetStream = "application/octet-stream"
Variables ¶
This section is empty.
Functions ¶
func AssertEqual ¶
AssertEqual checks if values are equal
func EqualsFold ¶
EqualFold the equivalent of bytes.EqualFold
func ImmutableString ¶
ImmutableString copies a string to make it immutable
func StatusMessage ¶
StatusMessage returns the correct message for the provided HTTP statuscode
func ToLowerBytes ¶
ToLowerBytes is the equivalent of bytes.ToLower
func ToUpperBytes ¶
ToUpperBytes is the equivalent of bytes.ToUpper
func TrimLeftBytes ¶
TrimLeftBytes is the equivalent of bytes.TrimLeft
func TrimRightBytes ¶
TrimRightBytes is the equivalent of bytes.TrimRight
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.