{"id":31594980,"url":"https://github.com/eredotpkfr/golidators","last_synced_at":"2026-03-02T16:38:09.630Z","repository":{"id":46717552,"uuid":"410839946","full_name":"eredotpkfr/golidators","owner":"eredotpkfr","description":"✨ Data validators for Golang","archived":false,"fork":false,"pushed_at":"2024-12-22T14:16:57.000Z","size":46,"stargazers_count":9,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-12-22T14:34:03.488Z","etag":null,"topics":["data-validation","data-validator","go","golang","golang-package","golidators","valid","validate","validation","validations","validator","validators"],"latest_commit_sha":null,"homepage":"https://pkg.go.dev/github.com/eredotpkfr/golidators","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eredotpkfr.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","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":"2021-09-27T10:30:15.000Z","updated_at":"2024-12-22T14:14:02.000Z","dependencies_parsed_at":"2024-06-19T17:36:04.616Z","dependency_job_id":"0bdcaa4e-502e-45f0-9231-9a14e79bd546","html_url":"https://github.com/eredotpkfr/golidators","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/eredotpkfr/golidators","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eredotpkfr%2Fgolidators","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eredotpkfr%2Fgolidators/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eredotpkfr%2Fgolidators/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eredotpkfr%2Fgolidators/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eredotpkfr","download_url":"https://codeload.github.com/eredotpkfr/golidators/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eredotpkfr%2Fgolidators/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278556209,"owners_count":26006079,"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","status":"online","status_checked_at":"2025-10-06T02:00:05.630Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["data-validation","data-validator","go","golang","golang-package","golidators","valid","validate","validation","validations","validator","validators"],"created_at":"2025-10-06T03:41:21.131Z","updated_at":"2025-10-06T03:44:16.952Z","avatar_url":"https://github.com/eredotpkfr.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Workflow](https://github.com/eredotpkfr/golidators/actions/workflows/go.yml/badge.svg)\n[![Go Report Card](https://goreportcard.com/badge/github.com/eredotpkfr/golidators)](https://goreportcard.com/report/github.com/eredotpkfr/golidators)\n[![Go Reference](https://pkg.go.dev/badge/github.com/eredotpkfr/golidators.svg)](https://pkg.go.dev/github.com/eredotpkfr/golidators)\n[![Go Version](https://img.shields.io/github/go-mod/go-version/eredotpkfr/golidators)](https://golang.org/)\n[![Release](https://img.shields.io/github/v/release/eredotpkfr/golidators)](https://github.com/eredotpkfr/golidators/releases/latest)\n[![License](https://img.shields.io/badge/license-MIT-blue)](https://github.com/eredotpkfr/golidators/blob/main/LICENSE)\n[![Stars](https://img.shields.io/github/stars/eredotpkfr/golidators?style=social)](https://github.com/eredotpkfr/golidators/stargazers)\n\n# golidators\n\nGolidators is a golang package, it includes basic data validation functions and regexes\n\n## Install\n\n```bash\n~$ go get github.com/eredotpkfr/golidators\n```\n\n## Overview\n\nFollowing validators available on this package:\n\n- Domain\n- MD5, SHA1, SHA224, SHA256, SHA512\n- IPv4, IPv4CIDR, IPv6, IPv6CIDR\n- MAC\n- Port\n- URL\n- UUID\n- CreditCard/Luhn\n\n## Usage\n\nJust import and use it. Also see documentation at [pkg.go.dev](https://pkg.go.dev/github.com/eredotpkfr/golidators#section-documentation)\n\n```go\npackage main\n\nimport (\n    \"github.com/eredotpkfr/golidators\"\n    \"fmt\"\n)\n\nfunc main() {\n  // Validate domain address\n  fmt.Println(golidators.Domain(\"www.example.com\"))\n  // Validate IPv4 address\n  fmt.Println(golidators.Ipv4(\"::1\"))\n  // Validate IPv6 address\n  fmt.Println(golidators.Ipv6(\"::1\"))\n  // Validate URL\n  fmt.Println(golidators.Url(\"https://www.example.com\"))\n  // Validate IPv4CIDR\n  fmt.Println(golidators.Ipv4Cidr(\"127.0.0.1/12\"))\n  // Validate most common hashes\n  fmt.Println(golidators.Md5(\"foo/bar\"))\n  // Validate with Luhn algorithm\n  fmt.Println(golidators.Luhn(5300025108592596))\n  // Calculate check digit with Luhn algorithm\n  fmt.Println(golidators.LuhnCheckDigit(5146713835433))\n  // Validate credit card number with Luhn\n  fmt.Println(golidators.CreditCard(5184214431476070))\n}\n```\n\n## Contact\n\nBlog - [erdoganyoksul.com](https://www.erdoganyoksul.com)\u003cbr/\u003e\nMail - erdoganyoksul3@gmail.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feredotpkfr%2Fgolidators","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feredotpkfr%2Fgolidators","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feredotpkfr%2Fgolidators/lists"}