Flora v1.6.2

Documentation

Flora

A small, dependency-free configuration loader for Go. Layered sources, typed access, and environment overrides — without the framework.

Flora reads configuration from files, environment variables, and command-line flags, merges them in a predictable order, and gives you typed access to the result. It has no third-party dependencies and a stable public API.

Why Flora

A quick taste

package main

import "github.com/flora-ling/flora"

type Config struct {
    Addr    string `flora:"addr"`
    Timeout int    `flora:"timeout"`
}

func main() {
    var cfg Config
    must(flora.Load(&cfg,
        flora.File("config.toml"),
        flora.Env("APP_"),
    ))
}
New here? Start with Quick Start — it walks through loading a real config file end to end.