{"id":15693510,"url":"https://github.com/danielgtaylor/unistyle","last_synced_at":"2025-05-08T03:55:20.767Z","repository":{"id":57510964,"uuid":"171220006","full_name":"danielgtaylor/unistyle","owner":"danielgtaylor","description":"ℱ𝒶𝓃𝒸𝓎 𝘁𝗲𝘅𝘁 𝘴𝘵𝘺𝘭𝘦𝘴 𝔣𝔬𝔯 G̳o̳l̳a̳n̳g̳ in a compact, zero dependency library.","archived":false,"fork":false,"pushed_at":"2019-02-18T05:43:20.000Z","size":6,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-08T03:55:13.872Z","etag":null,"topics":["fun","golang","library","styles","unicode","unicode-characters"],"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/danielgtaylor.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":"2019-02-18T05:24:37.000Z","updated_at":"2023-03-03T19:38:17.000Z","dependencies_parsed_at":"2022-09-26T17:50:59.838Z","dependency_job_id":null,"html_url":"https://github.com/danielgtaylor/unistyle","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielgtaylor%2Funistyle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielgtaylor%2Funistyle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielgtaylor%2Funistyle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielgtaylor%2Funistyle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danielgtaylor","download_url":"https://codeload.github.com/danielgtaylor/unistyle/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252996331,"owners_count":21837620,"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":["fun","golang","library","styles","unicode","unicode-characters"],"created_at":"2024-10-03T18:44:43.605Z","updated_at":"2025-05-08T03:55:20.712Z","avatar_url":"https://github.com/danielgtaylor.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Unistyle\n\n[![GoDoc](https://godoc.org/github.com/danielgtaylor/unistyle?status.svg)](https://godoc.org/github.com/danielgtaylor/unistyle) [![Go Report Card](https://goreportcard.com/badge/github.com/danielgtaylor/unistyle)](https://goreportcard.com/report/github.com/danielgtaylor/unistyle)\n\nUnicode text styles for Go:\n\n- 𝗕𝗼𝗹𝗱\n- 𝘐𝘵𝘢𝘭𝘪𝘤\n- U̲n̲d̲e̲r̲l̲i̲n̲e̲\n- S̶t̶r̶i̶k̶e̶t̶h̶r̶o̶u̶g̶h̶\n- 𝒞𝓊𝓇𝓈𝒾𝓋ℯ\n- 𝔊𝔬𝔱𝔥𝔦𝔠\n- And more! See the [docs](https://godoc.org/github.com/danielgtaylor/unistyle)\n\n## How does this work?\n\nThese styles are split into two categories:\n\n1. Unicode includes a table of [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_character) that can be used to modify the previous character in a string. This allows for effects like underline, overline, and strikethrough.\n\n2. Unicode includes multiple styles for most common characters. Using a character offset replacement mapping you can transform strings into their bold, italic, cursive or other styled equivalents.\n\n## Usage Example\n\nHere is a small example. See the tests for more.\n\n```go\npackage main\n\nimport (\n  \"fmt\"\n  \"github.com/danielgtaylor/unistyle\"\n)\n\nfunc main() {\n  // Diacritic examples\n  fmt.Println(unistyle.Bold(\"Bold text\"))\n  fmt.Println(unistyle.Strikethrough(\"Strike\", unistyle.StrikeStrokeLong))\n\n  // Character mapping examples\n  fmt.Println(unistyle.Cursive(\"Cursive\"))\n  fmt.Println(unistyle.Fraktur(\"Gothic\"))\n}\n```\n\n# License\n\nCopyright \u0026copy; 2019 Daniel G. Taylor\n\nhttps://dgt.mit-license.org/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielgtaylor%2Funistyle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanielgtaylor%2Funistyle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielgtaylor%2Funistyle/lists"}