config

package
v0.0.0-...-1ee42d9 Latest Latest
Warning

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

Go to latest
Published: May 26, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// DBConnectString is the statement to connect the application with the database
	DBConnectString = ""

	// DB_PORT represents the database port
	DB_PORT = 0

	// API_PORT
	API_PORT = 0
)

Functions

func LoadEnvs

func LoadEnvs(arg string)

LoadEnvs will initialize the environment variables for the application. Use "testPackage" or "testMain" for loading test environment for packages or main

LoadEnvs("testPackage")

Use "dev" for loading development environment

LoadEnvs("dev")

And "prod for loading prod ready environment

LoadEnvs("prod")

Types

This section is empty.

Jump to

Keyboard shortcuts

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