miniflux/config/config.go
Frédéric Guillot 228862fefa Refactor config package
- Parse configuration only once during startup time
- Store configuration values in a global variable
2019-06-02 06:30:08 -07:00

14 lines
401 B
Go

// Copyright 2018 Frédéric Guillot. All rights reserved.
// Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file.
package config // import "miniflux.app/config"
// Opts contains configuration options after parsing.
var Opts *Options
// ParseConfig parses configuration options.
func ParseConfig() (err error) {
Opts, err = parse()
return err
}