{"id":37850726,"url":"https://github.com/morphar/go-texttools","last_synced_at":"2026-01-16T16:12:07.056Z","repository":{"id":57493200,"uuid":"131068762","full_name":"morphar/go-texttools","owner":"morphar","description":"A collection of tools for manipulating texts in Go","archived":false,"fork":false,"pushed_at":"2019-01-15T04:22:55.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-06-20T15:45:45.946Z","etag":null,"topics":["camel-case","go","golang","kebab-case","pascal-case","slug","snake-case","text","tools"],"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/morphar.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}},"created_at":"2018-04-25T22:05:58.000Z","updated_at":"2024-06-20T15:45:45.947Z","dependencies_parsed_at":"2022-08-28T17:02:35.616Z","dependency_job_id":null,"html_url":"https://github.com/morphar/go-texttools","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/morphar/go-texttools","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morphar%2Fgo-texttools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morphar%2Fgo-texttools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morphar%2Fgo-texttools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morphar%2Fgo-texttools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/morphar","download_url":"https://codeload.github.com/morphar/go-texttools/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morphar%2Fgo-texttools/sbom","scorecard":{"id":660408,"data":{"date":"2025-08-11","repo":{"name":"github.com/morphar/go-texttools","commit":"256c5120d130e80804c25972011d45234dca8556"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Code-Review","score":0,"reason":"Found 0/7 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-21T16:00:01.415Z","repository_id":57493200,"created_at":"2025-08-21T16:00:01.415Z","updated_at":"2025-08-21T16:00:01.415Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28479488,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T11:59:17.896Z","status":"ssl_error","status_checked_at":"2026-01-16T11:55:55.838Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["camel-case","go","golang","kebab-case","pascal-case","slug","snake-case","text","tools"],"created_at":"2026-01-16T16:12:06.189Z","updated_at":"2026-01-16T16:12:07.045Z","avatar_url":"https://github.com/morphar.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-texttools\nA collection of tools for manipulating texts in Go\n\nShorten tries to create the most sensible (to a human) shortened text.  \nIf possible, it will try to cut at a non-word char.  \nIt will strip newlines and carriage returns.  \n```go\nShorten(str string, length int, appendStr string) (shorter string)\n```\n\nSpecialCharsToStandard replaces all kinds of non-ascii chars with transliterations.\n```go\nSpecialCharsToStandard(str string) string\n```\n\nSlug will convert a string to a [slug](https://en.wikipedia.org/wiki/Clean_URL#Slug).  \nIt will also do  transliteration of non-ascii chars.\n```go\nSlug(str string) string\n```\n\nUnCase takes a string in any \"case\" (kebab-case, snake_case, etc.) and creates a \"normal\" string.  \nE.g. my-slug-string -\u003e \"My slug string\"\n```go\nUnCase(str string) string\n```\n\nSnakeCase will convert a string to [snake_case](https://en.wikipedia.org/wiki/Letter_case#Special_case_styles).\n```go\nSnakeCase(str string) string\n```\n\nKebabCase will convert a string to [kebab-case](https://en.wikipedia.org/wiki/Letter_case#Special_case_styles).\n```go\nKebabCase(str string) string\n```\n\nCamelCase will convert a string to [camelCase](https://en.wikipedia.org/wiki/Camel_case).\n```go\nCamelCase(str string) string\n```\n\nPascalCase will convert a string to PascalCase.  \nThis is the same as [camelCase](https://en.wikipedia.org/wiki/Camel_case), but with the first letter capitalized.\n```go\nPascalCase(str string) string\n```\n\nStringInSlice will check if a string is in a slice and return true if it is.\n```go\nStringInSlice(searchStr string, strs []string) bool\n```\n\nHTMLToText converts HTML to standard text.\n```go\nHTMLToText(html string) (text string)\n```\n\nTextSanitizer converts HTML to standard text, but also replaces some special chars and escapings.\n```go\nSanitizeText(txt string) (newTxt string)\n```\n\nCP1258ToUTF8 converts a CP1258 byte array to a UTF-8 string.\n```go\nCP1258ToUTF8(txt []byte) (utf8Txt string)\n```\n\nRandomString creates a secure pseudorandom string using the crypto rand package.\n```go\nRandomString(n int) (str string)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmorphar%2Fgo-texttools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmorphar%2Fgo-texttools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmorphar%2Fgo-texttools/lists"}