Categorygithub.com/vitego/config
repositorypackage
1.0.0
Repository: https://github.com/vitego/config.git
Documentation: pkg.go.dev

# README

config

⚙️ Simple configuration parser

Usage

Parse config files

package main

import (
	"github.com/vitego/boilerplate"
	"github.com/vitego/config"
	"log"
)

func main() {
	err := config.Parse("config", boilerplate.Config)
	if err != nil {
		log.Fatal(err)
	}
}

Get value

package test

import (
	"github.com/vitego/config"
)

func test() string {
	return config.Get("app.name")
}