config

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2024 License: GPL-3.0 Imports: 3 Imported by: 2

README

go-config

Golang config loader to parse environment variables into structs Using joho/godotenv and caarlos0/env as base.

Implementation

Just take a look at the test file ( *_test.go )

Run test

go test -count=1 -coverprofile=coverage.out -coverpkg=./... && go tool cover -html=coverage.out -o cover.html

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadConfig

func LoadConfig(config interface{}) (err error)

LoadConfig: load the config based on .env file or on local env automatically parse to struct.

Types

This section is empty.

Jump to

Keyboard shortcuts

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