Documentation ¶
Index ¶
- Constants
- func AssertEqual(t testing.TB, a interface{}, b interface{}, description ...string)
- func ByteSize(bytes uint64) string
- func EqualsFold(b, s []byte) (equals bool)
- func FunctionName(fn interface{}) string
- func GetArgument(arg string) bool
- func GetBytes(s string) (bs []byte)
- func GetCharPos(s string, char byte, matchCount int) int
- func GetMIME(extension string) (mime string)
- func GetString(b []byte) string
- func GetTrimmedParam(param string) string
- func ImmutableString(s string) string
- func MemoryTotal() uint64
- 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 TrimLeft(s string, cutset byte) string
- func TrimRight(s string, cutset byte) string
- 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 ByteSize ¶ added in v0.0.7
Copyright github.com/cloudfoundry/bytefmt ByteSize returns a human-readable byte string of the form 10M, 12.5K, and so forth. The unit that results in the smallest number greater than or equal to 1 is always chosen.
func EqualsFold ¶
EqualFold the equivalent of bytes.EqualFold
func GetTrimmedParam ¶
GetTrimmedParam trims the ':' & '?' from a string
func ImmutableString ¶ added in v0.0.4
ImmutableString returns a immutable string with allocation
func StatusMessage ¶ added in v0.0.2
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
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.