config

package
v3.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2024 License: MIT Imports: 2 Imported by: 0

README

  • In this package, you put any functions to set up constant variables, env variables, messages or anything about configurations
  • For constant const configuration, you may use the variable directly from anywhere

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	RESTPort        string `env:"REST_PORT" envDefault:"8080"`
	MySQLConnString string `env:"MYSQL_CONN_STRING"`
}

func InitConfig

func InitConfig() (*Config, error)

InitConfig initializes configurations

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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