package
0.0.17
Repository: https://github.com/linuxsuren/api-testing.git
Documentation: pkg.go.dev

# Packages

Package home provides a way to get the home directory of OS Copied from https://github.com/mitchellh/go-homedir.

# Functions

EmptyThenDefault return the default value if the val is empty.
No description provided by the author
Expand the text with brace syntax.
No description provided by the author
GetFirstHeaderValue retursn the first value of the header.
GetPort returns the port of the listener.
IgnoreErrServerClosed ignores ErrServerClosed.
Keys returns a list of keys.
No description provided by the author
MakeSureNotNil makes sure the parameter is not nil.
OKOrErrorMessage returns OK or error message.
OrErrorMessage returns error message or message.
PathExists checks if the target path exist or not.
No description provided by the author
String generates a random alphanumeric string, without vowels, which is n characters long.
No description provided by the author
ZeroThenDefault return the default value if the val is zero.

# Constants

ContentType is the HTTP header key.
ContentType is the HTTP header key.
ContentType is the HTTP header key.
ContentType is the HTTP header key.
ContentType is the HTTP header key.
ContentType is the HTTP header key.
ContentType is the HTTP header key.
ContentType is the HTTP header key.
ContentType is the HTTP header key.
ContentType is the HTTP header key.
ContentType is the HTTP header key.