{"id":17644999,"url":"https://github.com/andefined/has","last_synced_at":"2025-09-10T08:12:22.947Z","repository":{"id":85954837,"uuid":"81460615","full_name":"andefined/has","owner":"andefined","description":null,"archived":false,"fork":false,"pushed_at":"2017-05-09T17:08:02.000Z","size":37,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-30T07:13:50.378Z","etag":null,"topics":["go"],"latest_commit_sha":null,"homepage":null,"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/andefined.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2017-02-09T14:50:00.000Z","updated_at":"2017-05-09T15:19:53.000Z","dependencies_parsed_at":"2023-03-07T21:45:23.750Z","dependency_job_id":null,"html_url":"https://github.com/andefined/has","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/andefined/has","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andefined%2Fhas","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andefined%2Fhas/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andefined%2Fhas/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andefined%2Fhas/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andefined","download_url":"https://codeload.github.com/andefined/has/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andefined%2Fhas/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274429711,"owners_count":25283439,"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-09-10T02:00:12.551Z","response_time":83,"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":["go"],"created_at":"2024-10-23T10:44:22.402Z","updated_at":"2025-09-10T08:12:22.900Z","avatar_url":"https://github.com/andefined.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/andefined/has.svg?branch=master)](https://travis-ci.org/andefined/has)\n[![Go Report Card](https://goreportcard.com/badge/github.com/andefined/has)](https://goreportcard.com/report/github.com/andefined/has)\n\n# has\n\nFind patterns in strings (wip)\n\n## Installation\n\n```bash\ngo get github.com/andefined/has\n```\n\n## Usage\n\n```go\nimport (\n    \"github.com/andefined/has\"\n)\n```\n\n## Methods\n\n```go\nhas.Email(s string) []string // email@example.com, email[at]example[dot]com, email [ at ] example [ dot ] com\nhas.IPv4(s string) []string // 192.168.1.1, 10.0.0.0, 0.0.0.0, 256.256.256.256\nhas.IPv6(s string) []string // 2001:0db8:0000:0000:0000:ff00:0042:8329\nhas.MAC(s string) []string // 1a-cd-3f-ac-42-34-ed-ab, 1a:cd:3f:ac:42:34:ed:ab\nhas.URL(s string) []string // https://www.domain.com, http://domain.com, https://github.com/andefined/has\nhas.Hostname(s string) []string // domain.com\nhas.Domain(s string) []string // domain.com\nhas.DNS(s string) []string // localhost.local\nhas.MD5(s string) []string // d131dd02c5e6eec4693d9a0698aff95c 2fcab58712467eab4004583eb8fb7f89\nhas.SHA1(s string) []string // de9f2c7fd25e1b3afad3e85a0bd17d9b100db4b3\nhas.SHA256(s string) []string // e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855\nhas.SHA512(s string) []string // cf83e1357eefb8bdf1542850d66d8007d620e4050b5715dc83f4a921d36ce9ce47d0d13c5d85f2b0ff8318d2877eec2f63b931bd47417a81a538327af927da3e\nhas.SSDeep(s string) []string // 01:username:password\nhas.UUID(s string) []string // 123e4567-e89b-12d3-a456-426655440000\nhas.Bitcoin(s string) []string // 1BvBMSEYstWetqTFn5Au4m4GFg7xJaNVN2, 3J98t1WpEZ73CNmQviecrnyiWrnqRhWNLy, 4J98t1WpEZ73CNmQviecrnyiWrnqRhWNLy\nhas.CreditCard(s string) []string // 1234-4567-8901-2345, 1234 4567 8901 2345\nhas.WinPath(s string) []string // C:\\Users\\user\\Desktop\nhas.UnixPath(s string) []string // /usr/src/bin\nhas.ShellShock(s string) []string // env x='() { :;}; echo vulnerable' bash -c \"echo this is a test\"\nhas.DataURI(s string) []string // data:text/html,%3Ch1%3EHello%2C%20World!%3C%2Fh1%3E, data:text/html,\u003cscript\u003ealert('hi');\u003c/script\u003e, data:text/plain;base64,SGVsbG8sIFdvcmxkIQ%3D%3D\nhas.Cyrillic(s string) []string // Привіт привет, Пламенный п. защитникам Родины\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandefined%2Fhas","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandefined%2Fhas","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandefined%2Fhas/lists"}