package
Version:
v0.0.0-...-0cbe00f
Opens a new window with list of versions in this module.
Published: Apr 17, 2024
License: MIT
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func LoadFiles(config interface{}, fileNames ...string) error
LoadFiles combines configs in the files and validate the configs
type AppConfig struct {
AppID string `yaml:"app_id"`
Port int64 `yaml:"port"`
Env string `yaml:"env"`
TheGraphEndpoint string `yaml:"the_graph_endpoint"`
}
GetConfig loads the config and return cached instance once loaded
Source Files
¶
Click to show internal directories.
Click to hide internal directories.