{"id":23520224,"url":"https://github.com/bsdf/uniclolde","last_synced_at":"2025-05-14T01:17:06.449Z","repository":{"id":3965109,"uuid":"5059212","full_name":"bsdf/uniclolde","owner":"bsdf","description":"uniclolde -- a unicode alphabet lib for go","archived":false,"fork":false,"pushed_at":"2012-07-16T02:16:42.000Z","size":96,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-25T16:12:40.445Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bsdf.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-07-15T19:24:10.000Z","updated_at":"2014-07-01T17:39:31.000Z","dependencies_parsed_at":"2022-09-03T10:50:57.751Z","dependency_job_id":null,"html_url":"https://github.com/bsdf/uniclolde","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/bsdf%2Funiclolde","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bsdf%2Funiclolde/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bsdf%2Funiclolde/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bsdf%2Funiclolde/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bsdf","download_url":"https://codeload.github.com/bsdf/uniclolde/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239207403,"owners_count":19599966,"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-12-25T16:12:27.584Z","updated_at":"2025-02-16T23:14:41.181Z","avatar_url":"https://github.com/bsdf.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"`go get -u github.com/bsdf/uniclolde`\n\n```go\npackage main\n\nimport (\n\t\"flag\"\n\t\"fmt\"\n\t\"github.com/bsdf/uniclolde\"\n\t\"strings\"\n)\n\nvar font = flag.String(\"f\", \"fullw\", \"font to use. type -l to list fonts\")\nvar list = flag.Bool(\"l\", false, \"list available fonts\")\n\ntype fontFunc func(string) string\n\nvar fonts = map[string]fontFunc{\n\t\"fullw\":  uniclolde.FullWidth,\n\t\"mathb\":  uniclolde.MathBold,\n\t\"mathi\":  uniclolde.MathItalic,\n\t\"mathbi\": uniclolde.MathBoldItalic,\n\t\"ss\":     uniclolde.SansSerif,\n\t\"ssb\":    uniclolde.SansSerifBold,\n\t\"ssi\":    uniclolde.SansSerifItalic,\n\t\"ssbi\":   uniclolde.SansSerifBoldItalic,\n\t\"mono\":   uniclolde.Monospace,\n}\n\nfunc main() {\n\tflag.Parse()\n\n\tif *list || len(flag.Args()) == 0 {\n\t\tlistFonts()\n\t\treturn\n\t}\n\n\tif f, ok := fonts[*font]; ok {\n\t\tstr := strings.Join(flag.Args(), \" \")\n\t\tfmt.Printf(\"%s\\n\", f(str))\n\t} else {\n\t\tfmt.Printf(\"\\\"%s\\\" is not a known font.\\n\\n\", *font)\n\t\tlistFonts()\n\t}\n}\n\nfunc listFonts() {\n\tfmt.Println(\"available fonts:\")\n\tfor k, f := range fonts {\n\t\tfmt.Printf(\"\\t%s:\\t%s\\n\", k, f(\"HeLLo WoRLd!!!!\"))\n\t}\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbsdf%2Funiclolde","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbsdf%2Funiclolde","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbsdf%2Funiclolde/lists"}