mirror of
https://github.com/alvierahman90/gohookr.git
synced 2024-12-22 07:32:02 +00:00
13 lines
228 B
Go
13 lines
228 B
Go
|
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)
|
||
|
}
|