26 lines
492 B
Go
26 lines
492 B
Go
package config
|
|
|
|
import (
|
|
viseconfig "git.grassecon.net/grassrootseconomics/visedriver/config"
|
|
apiconfig "git.grassecon.net/grassrootseconomics/sarafu-api/config"
|
|
)
|
|
|
|
var (
|
|
DbConn = viseconfig.DbConn
|
|
DefaultLanguage = viseconfig.DefaultLanguage
|
|
)
|
|
|
|
func LoadConfig() error {
|
|
err := viseconfig.LoadConfig()
|
|
if err != nil {
|
|
return err
|
|
}
|
|
err = apiconfig.LoadConfig()
|
|
if err != nil {
|
|
return err
|
|
}
|
|
DbConn = viseconfig.DbConn
|
|
DefaultLanguage = viseconfig.DefaultLanguage
|
|
return nil
|
|
}
|