mirror of
https://github.com/eosswedenorg/thalos
synced 2026-06-17 04:30:03 +02:00
15 lines
213 B
Go
15 lines
213 B
Go
package config
|
|
|
|
import (
|
|
"os"
|
|
)
|
|
|
|
// Read values from file
|
|
func (cfg *Config) ReadFile(filename string) error {
|
|
bytes, err := os.ReadFile(filename)
|
|
if err != nil {
|
|
return err
|
|
}
|
|
|
|
return cfg.ReadYAML(bytes)
|
|
}
|