Clivern / Beaver

💨 A real time messaging system to build a scalable in-app notifications, multiplayer games, chat apps in web and mobile apps.

Home Page:https://clivern.github.io/Beaver/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

YAML Configs Support

Clivern opened this issue · comments

commented
https://github.com/micro/go-config
database:
  host: localhost
  port: 25
  username: root
  password: root
import(
	"github.com/micro/go-config"
	"github.com/micro/go-config/source/file"
)

config.Load(file.NewSource(
	file.WithPath("config.yaml"),
))

fmt.Println(config.Get("database", "host").String("localhost"))