{"id":16179759,"url":"https://github.com/bep/triebytesmapper","last_synced_at":"2026-02-15T17:33:43.852Z","repository":{"id":168681252,"uuid":"644350045","full_name":"bep/triebytesmapper","owner":"bep","description":"Work in progress.","archived":false,"fork":false,"pushed_at":"2023-05-25T07:50:37.000Z","size":90,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-13T14:41:03.453Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bep.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":["bep"]}},"created_at":"2023-05-23T10:36:22.000Z","updated_at":"2023-05-24T21:40:24.000Z","dependencies_parsed_at":"2023-05-28T15:00:14.989Z","dependency_job_id":null,"html_url":"https://github.com/bep/triebytesmapper","commit_stats":null,"previous_names":["bep/triebytesmapper"],"tags_count":1,"template":false,"template_full_name":"bep/golibtemplate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bep%2Ftriebytesmapper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bep%2Ftriebytesmapper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bep%2Ftriebytesmapper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bep%2Ftriebytesmapper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bep","download_url":"https://codeload.github.com/bep/triebytesmapper/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247648925,"owners_count":20972942,"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-10-10T05:43:58.599Z","updated_at":"2026-02-15T17:33:38.820Z","avatar_url":"https://github.com/bep.png","language":"Go","funding_links":["https://github.com/sponsors/bep"],"categories":[],"sub_categories":[],"readme":"[![Tests on Linux, MacOS and Windows](https://github.com/bep/triebytesmapper/workflows/Test/badge.svg)](https://github.com/bep/triebytesmapper/actions?query=workflow:Test)\n[![Go Report Card](https://goreportcard.com/badge/github.com/bep/triebytesmapper)](https://goreportcard.com/report/github.com/bep/triebytesmapper)\n[![GoDoc](https://godoc.org/github.com/bep/triebytesmapper?status.svg)](https://godoc.org/github.com/bep/triebytesmapper)\n\nMapper builds a trie from a set of keywords and can be used to map a byte slice (typically file content) against these keywords.\n\nThere are some settings:\n\n```go\n// Options for the mapper.\ntype Options struct {\n\t// NormalizeRune will be applied to both the input and the keywords before matching.\n\t// Defaults to nil.\n\t// Typically used to  do lower casing and accent folding.\n\tNormalizeRune func(rune) rune\n\n\t// IsWordBoundary is used to determine word boundaries.\n\t// A default implementation is used if nil.\n\tIsWordBoundary func(rune) bool\n}\n```\n\nNote that this library currently does not work for CJK languages.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbep%2Ftriebytesmapper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbep%2Ftriebytesmapper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbep%2Ftriebytesmapper/lists"}