env

package
v1.24.0 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bin

func Bin(p ...string) string

*

  • Path under product bin

func Environ

func Environ() string

*

  • Determine the current environment

func Etc

func Etc(p ...string) string

*

  • Path under product etc

func Home

func Home() string

*

  • Determine the product home directory

func Hostname

func Hostname() string

*

  • Determine our hostname

func Load

func Load(from ...string) error

Load the contents of an .env file into the current environment

func LocalAddr

func LocalAddr() string

*

  • Determine our local address

func PublicAddr

func PublicAddr() string

*

  • Determine our public address

func Read

func Read(from string) (map[string]string, error)

Read the contents of an .env file

func Resource

func Resource(p ...string) string

*

  • Resource path under product

func Web

func Web(p ...string) string

*

  • Path under product web

Types

This section is empty.

Jump to

Keyboard shortcuts

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