mirror of
https://github.com/alvierahman90/gohookr.git
synced 2026-01-26 19:43:58 +00:00
Move config to separate package
This commit is contained in:
12
config/errors.go
Normal file
12
config/errors.go
Normal 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)
|
||||
}
|
||||
Reference in New Issue
Block a user