{"id":21961876,"url":"https://github.com/trapcodeio/abolish-go","last_synced_at":"2025-03-22T20:27:37.060Z","repository":{"id":98362855,"uuid":"577493628","full_name":"trapcodeio/abolish-go","owner":"trapcodeio","description":"A Performance first variable validator for golang","archived":false,"fork":false,"pushed_at":"2022-12-14T14:57:39.000Z","size":13,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-20T05:34:53.562Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/trapcodeio.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-12-12T21:32:25.000Z","updated_at":"2023-01-14T13:04:00.000Z","dependencies_parsed_at":"2023-04-06T08:04:00.895Z","dependency_job_id":null,"html_url":"https://github.com/trapcodeio/abolish-go","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trapcodeio%2Fabolish-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trapcodeio%2Fabolish-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trapcodeio%2Fabolish-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trapcodeio%2Fabolish-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/trapcodeio","download_url":"https://codeload.github.com/trapcodeio/abolish-go/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245017434,"owners_count":20547806,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-29T10:19:29.578Z","updated_at":"2025-03-22T20:27:37.055Z","avatar_url":"https://github.com/trapcodeio.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Abolish GoLang Version\n\n## What is this?\nAn attempt to make a GoLang version of the Abolish project.\n\n## Why?\n\n### Concept\nThe current validators in GoLang have some downsides that i cannot change.\nThe concept of abolish will provide a better way to validate data.\n\n## Downsides\nMost validators do reflect at runtime, which is not a good thing.\nabolish will not do this, which will make it faster at runtime.\n\nNo way to define errors at runtime. 😩\n\n## Solution\nCompile functions will be provided to compile rules and generate a single function to use at runtime.\n\n## How?\nThe abolish package will provide a way to validate data in a more flexible way.\n\n```go\n// rules via string\nvar rule = abolish.StringToRules(\"required|string|min:3|max:10\")\n\n// rules via maps\nvar ruleMap = map[string]any{\n    \"required\": true,\n    \"string\":   true,\n    \"min\":      3,\n    \"max\":      10,\n}\n\n// rules via structs\ntype Rule struct {\n\t// Note Tag `abolish` is customisable\n    Email string `abolish:\"required|email\"`\n}\n```\n\n## When?\nI am not sure when this will be finished, but i will try to make it as soon as possible.\nFor now it will only progress as i use it.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrapcodeio%2Fabolish-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrapcodeio%2Fabolish-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrapcodeio%2Fabolish-go/lists"}