{"id":16473401,"url":"https://github.com/vikpe/prettyfmt","last_synced_at":"2026-05-02T05:44:59.974Z","repository":{"id":43199830,"uuid":"511135069","full_name":"vikpe/prettyfmt","owner":"vikpe","description":"Go fmt with colored prefix and timestamp.","archived":false,"fork":false,"pushed_at":"2022-07-20T17:55:23.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-11T02:25:37.347Z","etag":null,"topics":["go","print","terminal"],"latest_commit_sha":null,"homepage":"","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/vikpe.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":"2022-07-06T12:49:15.000Z","updated_at":"2022-07-20T17:53:57.000Z","dependencies_parsed_at":"2022-09-26T17:01:00.297Z","dependency_job_id":null,"html_url":"https://github.com/vikpe/prettyfmt","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/vikpe%2Fprettyfmt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vikpe%2Fprettyfmt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vikpe%2Fprettyfmt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vikpe%2Fprettyfmt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vikpe","download_url":"https://codeload.github.com/vikpe/prettyfmt/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241111881,"owners_count":19911581,"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":["go","print","terminal"],"created_at":"2024-10-11T12:26:50.472Z","updated_at":"2026-05-02T05:44:59.948Z","avatar_url":"https://github.com/vikpe.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# prettyfmt [![Test](https://github.com/vikpe/prettyfmt/actions/workflows/test.yml/badge.svg)](https://github.com/vikpe/prettyfmt/actions/workflows/test.yml) [![codecov](https://codecov.io/gh/vikpe/prettyfmt/branch/main/graph/badge.svg?token=sc5Hd7M4wv)](https://codecov.io/gh/vikpe/prettyfmt) [![Go Report Card](https://goreportcard.com/badge/github.com/vikpe/prettyfmt)](https://goreportcard.com/report/github.com/vikpe/prettyfmt)\n\u003e Go fmt with colored prefix and timestamp\n\n```shell\ngo get github.com/vikpe/prettyfmt\n```\n\n## Synopsis\n\nColors from [github.com/fatih/color](https://github.com/fatih/color) ([list of values](https://github.com/fatih/color/blob/main/color.go#L69))\n\n```\nNew(\n  prefix          string,\n  prefixColor     color.Attribute, \n  timestampFormat string, \n  timestampColor  color.Attribute\n)\n```\n\n## Usage\n```go\npfmt := prettyfmt.New(\"chatbot\", color.FgHiBlue, \"15:04:05\", color.FgWhite)\npfmt.Println(\"start\")\npfmt.Printfln(\"connected as %s\", \"vikpebot\")\n```\n\n![image](https://user-images.githubusercontent.com/1616817/177564266-297c02a7-d5be-40b8-aac0-d97b3829830c.png)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvikpe%2Fprettyfmt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvikpe%2Fprettyfmt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvikpe%2Fprettyfmt/lists"}