{"id":50736,"library":"go-playground-validator-v8","title":"Validator v8","description":"Implements value validations for structs and individual fields based on tags.","status":"active","version":"8.18.2","language":"go","source_language":null,"source_url":null,"tags":["validation","struct-tags","validator"],"install":[{"cmd":"go get gopkg.in/go-playground/validator.v8","lang":"bash","label":"Install gopkg.in/go-playground/validator.v8"}],"dependencies":[],"imports":[{"symbol":"validator","correct":"gopkg.in/go-playground/validator.v8"}],"quickstart":{"code":"package main\n\nimport (\n\t\"fmt\"\n\t\"gopkg.in/go-playground/validator.v8\"\n)\n\ntype User struct {\n\tName string `validate:\"required\"`\n}\n\nfunc main() {\n\tv := validator.NewValidator(nil, nil)\n\terr := v.Struct(User{})\n\tfmt.Println(err)\n}","lang":"go","description":"Validates a struct with a required field tag."},"warnings":[{"fix":"Use gopkg.in/go-playground/validator.v10","message":"Version 8 is outdated; consider upgrading to v10 for latest features and fixes.","severity":"gotcha","affected_versions":">=8.0.0 <9.0.0"}],"env_vars":null,"search_vec":"'base':11 'field':10 'implement':3 'individu':9 'struct':7,16 'struct-tag':15 'tag':13,17 'v8':2 'valid':1,5,14,18 'valu':4","created_at":"2026-06-15T05:06:41.915092+00:00","updated_at":"2026-06-15T05:06:41.915092+00:00","problems":[],"ecosystem":"go","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/go-playground/validator","github":null,"docs":"https://pkg.go.dev/gopkg.in/go-playground/validator.v8#section-documentation","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["utility"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-15","next_check":"2026-12-12","install_tag":null}}