{"id":42852691,"url":"https://github.com/derv-dice/cfull","last_synced_at":"2026-01-30T12:10:34.330Z","repository":{"id":57535756,"uuid":"251672817","full_name":"derv-dice/cfull","owner":"derv-dice","description":"Simple Golang package to set RGB color of Terminal output","archived":false,"fork":false,"pushed_at":"2020-08-31T06:03:50.000Z","size":14,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-15T06:56:56.165Z","etag":null,"topics":["color","fmt","go","golang","output","terminal"],"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/derv-dice.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":"2020-03-31T17:02:13.000Z","updated_at":"2020-04-01T20:03:41.000Z","dependencies_parsed_at":"2022-08-29T00:41:00.496Z","dependency_job_id":null,"html_url":"https://github.com/derv-dice/cfull","commit_stats":null,"previous_names":["dervdice/cfull"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/derv-dice/cfull","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derv-dice%2Fcfull","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derv-dice%2Fcfull/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derv-dice%2Fcfull/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derv-dice%2Fcfull/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/derv-dice","download_url":"https://codeload.github.com/derv-dice/cfull/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derv-dice%2Fcfull/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28912386,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-30T11:55:24.701Z","status":"ssl_error","status_checked_at":"2026-01-30T11:54:13.194Z","response_time":66,"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":["color","fmt","go","golang","output","terminal"],"created_at":"2026-01-30T12:10:33.634Z","updated_at":"2026-01-30T12:10:34.322Z","avatar_url":"https://github.com/derv-dice.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cfull\nSimple Golang package to set RGB color of fmt.Print output\n\n\u003e It has only one method - SetRGB, but this is enought to do full-color output in Terminal using `fmt.Print()`\n\u003e\u003e You can use https://htmlcolorcodes.com/ to pick RGB color\n\n## Using examples\n\n### 1. Set only foreground color \n\n- foreground = ![#0099cc](https://placehold.it/15/0099cc/000000?text=+) `RGB(0, 153, 204)`\n    \n```golang\n    myColor := cfull.Color{\n        ColorFG: cfull.RGB{0, 153, 204},\n    }\n  \n    fmt.Println(cfull.SetRGB(\"Hello, World!\", myColor))\n ```\n \n \n ### 2. Set only background color \n\n- background = ![#E74C3C](https://placehold.it/15/E74C3C/000000?text=+) `RGB(231, 76, 60)`\n    \n```golang\n    myColor := cfull.Color{\n        ColorBG: cfull.RGB{231, 76, 60},\n    }\n  \n    fmt.Println(cfull.SetRGB(\"Hello, World!\", myColor))\n ```\n \n### 3. Set background and foreground \n- foreground = ![#000000](https://placehold.it/15/000000/000000?text=+) `RGB(0, 0, 0)`\n- background = ![#E74C3C](https://placehold.it/15/E74C3C/000000?text=+) `RGB(231, 76, 60)`\n    \n```golang\n    myColor := cfull.Color{\n        ColorFG: cfull.RGB{0, 0, 0},\n        ColorBG: cfull.RGB{231, 76, 60},\n    }\n  \n    fmt.Println(cfull.SetRGB(\"Hello, World!\", myColor))\n ```\n## Output exaple\n```golang\n    ColorOne := cfull.Color{\n        ColorFG: cfull.RGB{0, 153, 204},\n    }\n\n    ColorTwo := cfull.Color{\n        ColorBG: cfull.RGB{231, 76, 60},\n    }\n\n    ColorThree := cfull.Color{\n        ColorFG: cfull.RGB{0, 0, 0},\n        ColorBG: cfull.RGB{231, 76, 60},\n    }\n\n    fmt.Println(cfull.SetRGB(\"Hello, World!\", ColorOne))\n    fmt.Println(cfull.SetRGB(\"Hello, World!\", ColorTwo))\n    fmt.Println(cfull.SetRGB(\"Hello, World!\", ColorThree))\n\n    fmt.Println(\n        cfull.SetRGB(\"You can\", ColorOne),\n        cfull.SetRGB(\"use different styles\", ColorTwo),\n        cfull.SetRGB(\"in one output\", ColorThree),\n    )\n  \n    // returns:\n```\n\n![example](https://github.com/DERVdice/cfull/blob/master/Example.png)\n\n## Another way\n\nYou can make colorfull output without this package (Please, star if it helps).\nAll you need is use one of construtcions below. Just place it into fmt.Print()\n\n### 1. RGB Foreground:\n\n```golang\n    // Set color by changing nums 255\n    fmt.Sprintf(\"\\033[38;2;%d;%d;%dm%s\\033[0m\", 255, 255, 255, YourStringText)\n```\n\n\n### 2. RGB Background:\n\n```golang\n    // Set color by changing nums 255\n    fmt.Sprintf(\"\\033[48;2;%d;%d;%dm%s\\033[0m\", 255, 255, 255, YourStringText)\n```\n\n### 3. RGB Foreground + RGB Background:\n\n```golang\n    // Set foreground color by changing first three numbers and background by changing last 3 numbers\"\n    fmt.Sprintf(\"\\033[38;2;%d;%d;%dm\\033[48;2;%d;%d;%dm%s\\033[0m\", 255, 255, 255, 255, 255, 255, YourStringText)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fderv-dice%2Fcfull","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fderv-dice%2Fcfull","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fderv-dice%2Fcfull/lists"}