mirror of
https://github.com/status-im/status-go.git
synced 2025-01-09 14:16:21 +00:00
7433828a26
* exposed ValidateNodeConfig() * extended NodeConfig interface with Validate() method * added validate tag to some NodeConfig fields
12 lines
426 B
Go
12 lines
426 B
Go
package validator
|
|
|
|
import ut "github.com/go-playground/universal-translator"
|
|
|
|
// TranslationFunc is the function type used to register or override
|
|
// custom translations
|
|
type TranslationFunc func(ut ut.Translator, fe FieldError) string
|
|
|
|
// RegisterTranslationsFunc allows for registering of translations
|
|
// for a 'ut.Translator' for use withing the 'TranslationFunc'
|
|
type RegisterTranslationsFunc func(ut ut.Translator) error
|