helpers

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadEnv

func LoadEnv()

LoadEnv reads .env file and loads all variables as environment variables.

func MustReadEnv

func MustReadEnv(key string) string

MustReadEnv reads an environment variable and calls log.Panic if it doesn't exist.

func ReadEnv

func ReadEnv(key string, _default string) string

ReadEnv reads an environment variable with a default value if it doesn't exist.

Types

This section is empty.

Directories

Path Synopsis
api
v1
ws
v1

Jump to

Keyboard shortcuts

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