Move config to separate package

This commit is contained in:
2021-08-04 12:04:01 +01:00
parent 2189ee511c
commit 8677f5bfdd
4 changed files with 77 additions and 68 deletions

12
config/errors.go Normal file
View File

@@ -0,0 +1,12 @@
package config
import "fmt"
type requiredFieldError struct {
fieldName string
serviceName string
}
func (e requiredFieldError) Error() string {
return fmt.Sprintf("%v cannot be empty (%v)", e.fieldName, e.serviceName)
}