config

package
v0.1.25 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2022 License: MIT Imports: 2 Imported by: 0

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadConfig

func LoadConfig(c interface{})

Types

This section is empty.

Jump to

Keyboard shortcuts

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