{"modulePath":"github.com/reactima/echo-bind-validate","version":"v0.0.0-20170512220053-141310fd443b","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package bindvalidate\n\nPackage bindvalidate is package of validators and sanitizers for strings, structs and collections. Form Post is removed as we use JSON API only\n\n## Functions\n\n```go\nfunc StatusTitle(code string) string\n```\nStatusTitle returns a text for the HTTP status code. It returns the empty string if the code is unknown.\n\n## Types\n\n```go\ntype BindAndValidate struct{}\n```\nBindAndValidate struct\n\n```go\nfunc (cb *BindAndValidate) Bind(i interface{}, c echo.Context) error\n```\nBind override\n\n```go\ntype JSONError struct {\n\tCode   string `json:\"code\"`   // an application-specific error code, expressed as a string value.\n\tTitle  string `json:\"title\"`  // a short, human-readable summary of the problem that SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization.\n\tSource string `json:\"source\"` // an object containing references to the source of the error\n\tDetail string `json:\"detail\"` // a human-readable explanation specific to this occurrence of the problem.\n}\n```\nJSONError custom implementation of JSONAPI error\n\n```go\nfunc NewError(code, source, detail string) *JSONError\n```\nNewError creates new error\n\n```go\ntype JSONErrors struct {\n\tErrors []*JSONError `json:\"errors\"`\n}\n```\nJSONErrors for multiple return\n\n```go\nfunc (e JSONErrors) Error() string\n```\n\n","path":"github.com/reactima/echo-bind-validate/bindvalidate","name":"bindvalidate","synopsis":"Package bindvalidate is package of validators and sanitizers for strings, structs and collections.","isRedistributable":true}
