flagutil

package module
v1.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 29, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL