{"id":15356833,"url":"https://github.com/linyows/go-onigmo","last_synced_at":"2025-07-11T15:43:46.871Z","repository":{"id":140523843,"uuid":"106935117","full_name":"linyows/go-onigmo","owner":"linyows","description":" :japanese_ogre: Onigmo bindings for Go","archived":false,"fork":false,"pushed_at":"2019-05-23T05:19:25.000Z","size":37,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-07-11T14:40:17.116Z","etag":null,"topics":["c","cgo","golang","onigmo","onigmo-bindings","regex"],"latest_commit_sha":null,"homepage":"","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/linyows.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}},"created_at":"2017-10-14T14:35:46.000Z","updated_at":"2022-11-30T17:58:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"e8591301-8659-492d-93ba-c1cf5f04dacb","html_url":"https://github.com/linyows/go-onigmo","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/linyows/go-onigmo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linyows%2Fgo-onigmo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linyows%2Fgo-onigmo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linyows%2Fgo-onigmo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linyows%2Fgo-onigmo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/linyows","download_url":"https://codeload.github.com/linyows/go-onigmo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linyows%2Fgo-onigmo/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264843078,"owners_count":23672120,"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":["c","cgo","golang","onigmo","onigmo-bindings","regex"],"created_at":"2024-10-01T12:30:09.897Z","updated_at":"2025-07-11T15:43:46.842Z","avatar_url":"https://github.com/linyows.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":" :japanese_ogre: Onigmo bindings for Go\n=======================================\n\nIt binds the regular expression library Onigmo to Go.\n\n[![Travis](https://img.shields.io/travis/linyows/go-onigmo.svg?style=for-the-badge)][travis]\n[![Codecov](https://img.shields.io/codecov/c/github/linyows/go-onigmo.svg?style=for-the-badge)][codecov]\n[![GitHub release](http://img.shields.io/github/release/linyows/go-onigmo.svg?style=for-the-badge)][release]\n[![GoDoc](http://img.shields.io/badge/go-documentation-blue.svg?style=for-the-badge)][godocs]\n[![MIT License](http://img.shields.io/badge/license-MIT-blue.svg?style=for-the-badge)][license]\n\n[travis]: https://travis-ci.org/linyows/go-onigmo\n[codecov]: https://codecov.io/gh/linyows/go-onigmo\n[release]: https://github.com/linyows/go-onigmo/releases\n[godocs]: http://godoc.org/github.com/linyows/go-onigmo\n[license]: https://github.com/linyows/go-onigmo/blob/master/LICENSE\n\nBenchmarks\n----------\n\nThese are the benchmarks as they are defined in Go's regexp package.\n\n```sh\n$ go test -bench RE2 | sed 's/RE2/Regexp/' \u003e before\n$ go test -bench Onigmo | sed 's/Onigmo/Regexp/' \u003e after\n$ benchcmp before after\nbenchmark             old ns/op     new ns/op     delta\nBenchmarkRegexp-4     25775         31043         +20.44%\n```\n\nUsage\n-----\n\n```go\nfunc main() {\n  s := \"Hello World\"\n  re := MustCompile(\"^Hello (?\u003cword\u003e[A-z]*)$\")\n  re.MatchString(s)\n  word, _ := re.matchResult.Get(\"word\")\n  fmt.Sprintf(\"Naruhodo! The %s\", word)\n\n  defer re.matchResult.Free()\n  defer re.Free()\n}\n```\n\nInstallation\n------------\n\n```sh\n$ git clone git@github.com:linyows/go-onigmo.git \u0026\u0026 cd go-onigmo\n$ make onigmo\n```\n\nTo install, use `go get`:\n\n```sh\n$ go get -d github.com/linyows/go-onigmo\n```\n\nContribution\n------------\n\n1. Fork ([https://github.com/linyows/go-onigmo/fork](https://github.com/linyows/go-onigmo/fork))\n1. Create a feature branch\n1. Commit your changes\n1. Rebase your local changes against the master branch\n1. Run test suite with the `go test ./...` command and confirm that it passes\n1. Run `gofmt -s`\n1. Create a new Pull Request\n\nAuthor\n------\n\n[linyows](https://github.com/linyows)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinyows%2Fgo-onigmo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flinyows%2Fgo-onigmo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinyows%2Fgo-onigmo/lists"}