package
1.0.5
Repository: https://github.com/dgoodwin/origin.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Functions

AllLocalIP4 returns all the IPv4 addresses that this host can be reached on.
No description provided by the author
No description provided by the author
No description provided by the author
DefaultLocalIP4 returns an IPv4 address that this host can be reached on.
No description provided by the author
Env returns an environment variable or a default value if not specified.
No description provided by the author
GetEnv returns an environment value if specified.
GetLogLevel returns the current glog log level.
No description provided by the author
IsTerminal returns whether the passed io.Reader is a terminal or not.
IsTerminalWriter returns whether the passed io.Writer is a terminal or not.
ListenAndServe starts a server that listens on the provided TCP mode (as supported by net.Listen).
ListenAndServeTLS starts a server that listens on the provided TCP mode (as supported by net.Listen).
No description provided by the author
No description provided by the author
No description provided by the author
PromptForBool prompts for user input of a boolean value.
PromptForPasswordString prompts for user input by disabling echo in terminal, useful for password prompt.
PromptForString takes an io.Reader and prompts for user input if it's a terminal, returning the result.
PromptForStringWithDefault prompts for user input but take a default in case nothing is provided.
RelativizePaths updates the given refs to be relative paths, relative to the given base directory.
RelativizePathWithNoBacksteps updates the given refs to be relative paths, relative to the given base directory as long as they do not require backsteps.
ResolvePaths updates the given refs to be absolute paths, relative to the given base directory.
TransportFor returns an http.Transport for the given ca and client cert (which may be empty strings).
TryListen tries to open a connection on the given port and returns true if it succeeded.
WaitForSuccessfulDial attempts to connect to the given address, closing and returning nil on the first successful connection.

# Variables

ErrorNoDefaultIP is returned when no suitable non-loopback address can be found.

# Interfaces

Mux is a standard mux interface for HTTP.

# Type aliases

No description provided by the author