{"id":13614567,"url":"https://github.com/flier/gohs","last_synced_at":"2025-05-15T06:08:23.778Z","repository":{"id":3797895,"uuid":"50930469","full_name":"flier/gohs","owner":"flier","description":"GoLang Binding of HyperScan https://www.hyperscan.io/","archived":false,"fork":false,"pushed_at":"2025-03-13T00:34:39.000Z","size":1566,"stargazers_count":286,"open_issues_count":6,"forks_count":50,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-04-14T10:42:41.828Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/flier.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","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":"2016-02-02T15:32:46.000Z","updated_at":"2025-04-07T01:52:19.000Z","dependencies_parsed_at":"2024-12-21T00:01:58.042Z","dependency_job_id":"7ec0804b-9b6d-442a-9176-ea2d5e088f73","html_url":"https://github.com/flier/gohs","commit_stats":{"total_commits":254,"total_committers":11,"mean_commits":23.09090909090909,"dds":"0.16535433070866146","last_synced_commit":"0ea84f8ab49b8288bdefccce3a565d0ba75f0d16"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flier%2Fgohs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flier%2Fgohs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flier%2Fgohs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flier%2Fgohs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flier","download_url":"https://codeload.github.com/flier/gohs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254283350,"owners_count":22045141,"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-08-01T20:01:03.244Z","updated_at":"2025-05-15T06:08:18.762Z","avatar_url":"https://github.com/flier.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# gohs [![Continuous integration](https://github.com/flier/gohs/actions/workflows/ci.yml/badge.svg?)](https://github.com/flier/gohs/actions/workflows/ci.yml) [![Go Report Card](https://goreportcard.com/badge/github.com/flier/gohs?)](https://goreportcard.com/report/github.com/flier/gohs) [![codecov](https://codecov.io/gh/flier/gohs/branch/master/graph/badge.svg?token=F5CLCxpJGM)](https://codecov.io/gh/flier/gohs)  [![Apache](https://img.shields.io/badge/license-Apache-blue.svg)](https://github.com/flier/gohs/blob/master/LICENSE-APACHE) [![MIT](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/flier/gohs/blob/master/LICENSE-MIT)\n\nGolang binding for Intel's HyperScan regex matching library: [hyperscan.io](https://www.hyperscan.io/)\n\n## Hyperscan [![Go Reference](https://pkg.go.dev/badge/github.com/flier/gohs/hyperscan.svg)](https://pkg.go.dev/github.com/flier/gohs/hyperscan)\n\nHyperscan is a software regular expression matching engine designed with high performance and flexibility in mind. It is implemented as a library that exposes a straightforward C API.\n\n### Build\n\n`gohs` does not enable the latest api of Hyperscan v5.4 by default, if you want to use it please pass build tags `hyperscan_v54`.\n\n```bash\ngo get -u -tags hyperscan_v54 github.com/flier/gohs/hyperscan\n```\n\n`gohs` will use Hyperscan v5 API by default, you can also build for Hyperscan v4 with `hyperscan_v4` tag.\n\n```bash\ngo get -u -tags hyperscan_v4 github.com/flier/gohs/hyperscan\n```\n\n## Chimera [![Go Reference](https://pkg.go.dev/badge/github.com/flier/gohs/chimera.svg)](https://pkg.go.dev/github.com/flier/gohs/chimera)\n\nChimera is a software regular expression matching engine that is a hybrid of Hyperscan and PCRE. The design goals of Chimera are to fully support PCRE syntax as well as to take advantage of the high performance nature of Hyperscan.\n\n### Build\n\nIt is recommended to compile and link Chimera using static libraries.\n\n```bash\n$ mkdir build \u0026\u0026 cd build\n$ cmake .. -G Ninja -DBUILD_STATIC_LIBS=on\n$ ninja \u0026\u0026 ninja install\n$ go get -u github.com/flier/gohs/hyperscan\n```\n\n### Note\n\nYou need to download the PCRE library source code to build Chimera, see [Chimera Requirements](https://intel.github.io/hyperscan/dev-reference/chimera.html#requirements) for more details\n\n## Vectorscan\n\nThe Intel's Hyperscan relies on the SSE/AVX instruction set for x86 platform. If you need to use it on other platforms such as ARM, you can install [Vectorscan](https://github.com/VectorCamp/vectorscan) which is a portable fork of Hyperscan that supports the ARM NEON/ASIMD and Power VSX.\n\n## License\n\nThis project is licensed under either of Apache License ([LICENSE-APACHE](LICENSE-APACHE)) or MIT license ([LICENSE-MIT](LICENSE-MIT)) at your option.\n\n## Contribution\n\nUnless you explicitly state otherwise, any contribution intentionally submitted\nfor inclusion in Futures by you, as defined in the Apache-2.0 license, shall be\ndual licensed as above, without any additional terms or conditions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflier%2Fgohs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflier%2Fgohs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflier%2Fgohs/lists"}