env

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Debug = Bool("GODOM_DEBUG")

Functions

func Bool

func Bool(key string) bool

Bool reads a boolean environment variable using strconv.ParseBool. Returns false if unset. Logs a warning if the value is not a valid bool.

func Host

func Host() string

Host returns the GODOM_HOST value, or empty if unset.

func NoAuth

func NoAuth() bool

NoAuth returns the GODOM_NO_AUTH value.

func NoBrowser

func NoBrowser() bool

NoBrowser returns the GODOM_NO_BROWSER value.

func Port

func Port() int

Port returns the GODOM_PORT value, or 0 if unset/invalid.

func Quiet

func Quiet() bool

Quiet returns the GODOM_QUIET value.

func Token

func Token() string

Token returns the GODOM_TOKEN value, or empty if unset.

Types

This section is empty.

Jump to

Keyboard shortcuts

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