mirror of
https://github.com/taigrr/jety.git
synced 2026-04-02 03:19:03 -07:00
go mod init, add stubbed funcs
This commit is contained in:
18
README.md
18
README.md
@@ -2,4 +2,22 @@
|
|||||||
|
|
||||||
JSON, ENV, YAML, TOML
|
JSON, ENV, YAML, TOML
|
||||||
|
|
||||||
|
This is a package for collapsing multiple configuration stores (env+json, env+yaml, env+toml) and writing them back to a centralized config.
|
||||||
|
|
||||||
|
It should behave similarly to the AutomaticEnv functionality of viper, but without some of the extra heft of the depedendencies it carries.
|
||||||
|
|
||||||
|
|
||||||
|
.AutomaticEnv
|
||||||
|
.ConfigFileUsed
|
||||||
|
.GetDuration
|
||||||
|
.GetString
|
||||||
|
.GetStringMap
|
||||||
|
.GetStringSlice
|
||||||
|
.ReadInConfig
|
||||||
|
.SetConfigFile
|
||||||
|
.SetConfigName
|
||||||
|
.SetConfigType
|
||||||
|
.SetDefault
|
||||||
|
.Set("privkey", string
|
||||||
|
viper.ConfigFileNotFoundError); ok {
|
||||||
|
.WriteConfig
|
||||||
|
|||||||
50
env.go
Normal file
50
env.go
Normal file
@@ -0,0 +1,50 @@
|
|||||||
|
package config
|
||||||
|
|
||||||
|
import "errors"
|
||||||
|
|
||||||
|
type ConfigManager struct{}
|
||||||
|
|
||||||
|
var ConfigFileNotFoundError = errors.New("config File Not Found")
|
||||||
|
|
||||||
|
func NewConfigManager() *ConfigManager {
|
||||||
|
return &ConfigManager{}
|
||||||
|
}
|
||||||
|
|
||||||
|
func AutoMaticEnv() {
|
||||||
|
}
|
||||||
|
|
||||||
|
func ConfigFileUsed() {
|
||||||
|
}
|
||||||
|
|
||||||
|
func GetDuration() {
|
||||||
|
}
|
||||||
|
|
||||||
|
func GetString() {
|
||||||
|
}
|
||||||
|
|
||||||
|
func GetStringMap() {
|
||||||
|
}
|
||||||
|
|
||||||
|
func GetStringSlice() {
|
||||||
|
}
|
||||||
|
|
||||||
|
func ReadInConfig() {
|
||||||
|
}
|
||||||
|
|
||||||
|
func SetConfigFile() {
|
||||||
|
}
|
||||||
|
|
||||||
|
func SetConfigName() {
|
||||||
|
}
|
||||||
|
|
||||||
|
func SetConfigType() {
|
||||||
|
}
|
||||||
|
|
||||||
|
func SetDefault() {
|
||||||
|
}
|
||||||
|
|
||||||
|
func Set() {
|
||||||
|
}
|
||||||
|
|
||||||
|
func WriteConfig() {
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user