15 lines
210 B
Go
15 lines
210 B
Go
package config
|
|
|
|
import "fmt"
|
|
|
|
type DatabaseConfig struct {
|
|
Path string `yaml:"path"`
|
|
}
|
|
|
|
func (dc *DatabaseConfig) Validate() error {
|
|
if dc.Path == "" {
|
|
return fmt.Errorf("path is missing")
|
|
}
|
|
return nil
|
|
}
|