loopfz / gadgeto

Gadgeto! is a collection of tools that aim to facilitate the development of REST APIs in Go.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

nil dereference during RegisterTagNameFunc

sgburtsev opened this issue · comments

There is no initValidator() here:

func RegisterTagNameFunc(registerTagFunc validator.TagNameFunc) {
	validatorObj.RegisterTagNameFunc(registerTagFunc)
}

so a panic occurs.

It appears, that there is a ready MR (#75). Take a look on it please.