package
Version:
v0.1.25
Opens a new window with list of versions in this module.
Published: Oct 4, 2022
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Ssi Core / Config
This package allows you to use the values from the .env
file by collation of the env values of the machine.
abstract:
LoadConfig(p string, c interface{}) interface{}
example:
package main
import(
"github.com/ssibrahimbas/ssi-core/pkg/config"
)
func main() {
type Config struct {
Port string `env:"PORT"`
}
c := &Config{}
config.LoadConfig(".", &c)
fmt.Println(c.Port)
}
Documentation
¶
func LoadConfig(c interface{})
Source Files
¶
Click to show internal directories.
Click to hide internal directories.