Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPortFromEnv ¶
GetPortFromEnv returns a valid TCP/IP listening ':PORT' string based on the values of environment variable :
PORT : int value between 1 and 65535 (the parameter defaultPort will be used if env is not defined) in case the ENV variable PORT exists and contains an invalid integer the functions returns an empty string and an error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.