{"id":17124929,"url":"https://github.com/shellyln/go-sql-like-expr","last_synced_at":"2025-03-24T03:30:42.974Z","repository":{"id":65616848,"uuid":"595835728","full_name":"shellyln/go-sql-like-expr","owner":"shellyln","description":"Convert SQL Like patterns to Go regular expressions.","archived":false,"fork":false,"pushed_at":"2023-01-31T22:54:53.000Z","size":4,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-29T09:44:57.989Z","etag":null,"topics":["go","golang","golang-library","library","regex","regex-pattern","regexp","sql"],"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/shellyln.png","metadata":{"files":{"readme":"README.md","changelog":"Changelog.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2023-01-31T22:47:41.000Z","updated_at":"2023-02-23T23:43:59.000Z","dependencies_parsed_at":"2023-02-16T23:40:32.505Z","dependency_job_id":null,"html_url":"https://github.com/shellyln/go-sql-like-expr","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shellyln%2Fgo-sql-like-expr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shellyln%2Fgo-sql-like-expr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shellyln%2Fgo-sql-like-expr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shellyln%2Fgo-sql-like-expr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shellyln","download_url":"https://codeload.github.com/shellyln/go-sql-like-expr/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245204367,"owners_count":20577337,"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":["go","golang","golang-library","library","regex","regex-pattern","regexp","sql"],"created_at":"2024-10-14T18:43:43.014Z","updated_at":"2025-03-24T03:30:42.947Z","avatar_url":"https://github.com/shellyln.png","language":"Go","readme":"# Go SQL Like expression\nConvert SQL Like patterns to Go regular expressions.\n\n[![Test](https://github.com/shellyln/go-sql-like-expr/actions/workflows/test.yml/badge.svg)](https://github.com/shellyln/go-sql-like-expr/actions/workflows/test.yml)\n[![release](https://img.shields.io/github/v/release/shellyln/go-sql-like-expr)](https://github.com/shellyln/go-sql-like-expr/releases)\n[![Go version](https://img.shields.io/github/go-mod/go-version/shellyln/go-sql-like-expr)](https://github.com/shellyln/go-sql-like-expr)\n\n## 🚀 Usage\n\n```go\npackage main\n\nimport (\n    \"fmt\"\n    \"regexp\"\n    \"github.com/shellyln/go-sql-like-expr/likeexpr\"\n)\n\nfunc main() {\n    // Parameters:\n    // Like pattern, Escape character, Escaping the escape character itself\n    pat := likeexpr.ToRegexp(\"fo%ba_\", '\\\\', false)\n\n    re, err := regexp.Compile(pat)\n    if err != nil {\n        fmt.Printf(\"Compile: error = %v\\n\", err)\n        return\n    }\n\n    matched := re.MatchString(\"fooobar\")\n    fmt.Printf(\"Compile: matched = %v\\n\", matched)\n}\n```\n\n## ⚖️ License\n\nMIT  \nCopyright (c) 2023 Shellyl_N and Authors.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshellyln%2Fgo-sql-like-expr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshellyln%2Fgo-sql-like-expr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshellyln%2Fgo-sql-like-expr/lists"}