{"id":19002465,"url":"https://github.com/programyazar/gomicrocolor","last_synced_at":"2025-02-21T13:41:48.669Z","repository":{"id":57641222,"uuid":"103228962","full_name":"ProgramYazar/GoMicroColor","owner":"ProgramYazar","description":"Golang bash color output writer  ","archived":false,"fork":false,"pushed_at":"2017-09-12T06:38:43.000Z","size":2,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-01T18:43:07.752Z","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/ProgramYazar.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":"2017-09-12T06:05:34.000Z","updated_at":"2023-02-27T00:51:00.000Z","dependencies_parsed_at":"2022-09-05T07:41:29.180Z","dependency_job_id":null,"html_url":"https://github.com/ProgramYazar/GoMicroColor","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/ProgramYazar%2FGoMicroColor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ProgramYazar%2FGoMicroColor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ProgramYazar%2FGoMicroColor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ProgramYazar%2FGoMicroColor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ProgramYazar","download_url":"https://codeload.github.com/ProgramYazar/GoMicroColor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240027390,"owners_count":19736209,"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-11-08T18:15:20.199Z","updated_at":"2025-02-21T13:41:48.634Z","avatar_url":"https://github.com/ProgramYazar.png","language":"Go","readme":"# GoMicroColor\nGolang bash color output writer  \n\n\n# Usage\nThis library can be use as standart golang io.Writer. Its a simple solution for simple problems on bash environment. Tested on MacOsX but probably works on Linux.\n\n# Example\n\nBasic usage of this library...\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"io\"\n\t\"log\"\n\t\"os\"\n\n\tgcolor \"github.com/ProgramYazar/GoMicroColor\"\n)\n\nfunc listen(ch chan string) {\n\t// better error output\n\terrorOut := gcolor.NewColorWriter(os.Stderr, gcolor.Red, gcolor.BackgroundGreen)\n\n\ttw := io.MultiWriter(\n\t\tos.Stderr,\n\t\tos.Stdout,\n\t\terrorOut,\n\t)\n\tfmt.Fprintf(tw, \"received data: %s\\n\", \u003c-ch)\n\n}\n\nfunc main() {\n\tvar ch = make(chan string)\n\tgo listen(ch)\n\tch \u003c- \"Error line\"\n\tclose(ch)\n\n\tgreenOutput := gcolor.NewColorWriter(os.Stderr, gcolor.Green, gcolor.BackgroundDefault)\n\tlogger := log.New(greenOutput, \"\", log.LstdFlags)\n\tlogger.Println(\"logger can log this\")\n\n}\n\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprogramyazar%2Fgomicrocolor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprogramyazar%2Fgomicrocolor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprogramyazar%2Fgomicrocolor/lists"}