mirror of
https://github.com/wahyd4/forego.git
synced 2026-08-08 21:01:01 +10:00
See #32 gotenv can read simple yaml file so we don't need to use a read yaml parse. The value in forego file will be set as default value, if we set flag or env value, it will override the value in forego file
12 lines
224 B
Go
12 lines
224 B
Go
package main
|
|
|
|
import "testing"
|
|
|
|
func TestReadOptionFile(t *testing.T) {
|
|
config_file := "./fixtures/options/.forego"
|
|
_, err := ReadConfig(config_file)
|
|
if err != nil {
|
|
t.Fatalf("Could not read config file: %s", err)
|
|
}
|
|
}
|