Documentation ¶ Index ¶ func GetPort(env string, def int) (int, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func GetPort ¶ func GetPort(env string, def int) (int, error) GetPort looks up the environment variable env and converts it to an int. It uses the default value def if env is not present in the environment. It returns an error if the result is not in the range [1..65535]. Types ¶ This section is empty. Source Files ¶ View all Source files flagutil.go Click to show internal directories. Click to hide internal directories.