{"id":18447662,"url":"https://github.com/koki-develop/mingo","last_synced_at":"2025-04-08T00:32:19.743Z","repository":{"id":226037133,"uuid":"767564465","full_name":"koki-develop/mingo","owner":"koki-develop","description":"Go also wants to be minified.","archived":false,"fork":false,"pushed_at":"2024-03-30T08:24:04.000Z","size":70,"stargazers_count":14,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-23T03:51:15.172Z","etag":null,"topics":["golang","minify"],"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/koki-develop.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,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2024-03-05T14:21:18.000Z","updated_at":"2024-07-17T23:07:30.000Z","dependencies_parsed_at":"2024-03-09T07:29:20.800Z","dependency_job_id":"78a22b32-f479-42f8-a8a2-3a28b61293b6","html_url":"https://github.com/koki-develop/mingo","commit_stats":null,"previous_names":["koki-develop/mingo"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koki-develop%2Fmingo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koki-develop%2Fmingo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koki-develop%2Fmingo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koki-develop%2Fmingo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/koki-develop","download_url":"https://codeload.github.com/koki-develop/mingo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247755449,"owners_count":20990618,"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":["golang","minify"],"created_at":"2024-11-06T07:14:05.239Z","updated_at":"2025-04-08T00:32:14.723Z","avatar_url":"https://github.com/koki-develop.png","language":"Go","readme":"\u003ch1 align=\"center\"\u003emingo\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n\u003ca href=\"https://github.com/koki-develop/mingo/releases/latest\"\u003e\u003cimg src=\"https://img.shields.io/github/v/release/koki-develop/mingo\" alt=\"GitHub release (latest by date)\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/koki-develop/mingo/actions/workflows/ci.yml\"\u003e\u003cimg src=\"https://img.shields.io/github/actions/workflow/status/koki-develop/mingo/ci.yml?logo=github\" alt=\"GitHub Workflow Status\"\u003e\u003c/a\u003e\n\u003ca href=\"https://goreportcard.com/report/github.com/koki-develop/mingo\"\u003e\u003cimg src=\"https://goreportcard.com/badge/github.com/koki-develop/mingo\" alt=\"Go Report Card\"\u003e\u003c/a\u003e\n\u003ca href=\"./LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/github/license/koki-develop/mingo\" alt=\"LICENSE\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n\u003cb\u003e\u003ci\u003eGo also wants to be minified.\u003c/i\u003e\u003c/b\u003e\n\u003c/p\u003e\n\n## Contents\n\n- [Contents](#contents)\n- [Installation](#installation)\n  - [Homebrew Tap](#homebrew-tap)\n  - [`go install`](#go-install)\n  - [Releases](#releases)\n- [Usage](#usage)\n  - [Example](#example)\n- [LICENSE](#license)\n\n## Installation\n\n### Homebrew Tap\n\n```console\n$ brew install koki-develop/tap/mingo\n```\n\n### `go install`\n\n```console\n$ go install github.com/koki-develop/mingo@latest\n```\n\n### Releases\n\nDownload the binary from the [releases page](https://github.com/koki-develop/mingo/releases/latest).\n\n## Usage\n\n```console\n$ mingo --help\nGo language also wants to be minified.\n\nUsage:\n  mingo [flags] [files]...\n\nFlags:\n  -h, --help      help for mingo\n  -v, --version   version for mingo\n  -w, --write     write result to (source) file instead of stdout\n```\n\n### Example\n\n```go\n// main.go\npackage main\n\nimport \"fmt\"\n\nfunc fib(n int) int {\n\tif n \u003c= 1 {\n\t\treturn n\n\t}\n\treturn fib(n-1) + fib(n-2)\n}\n\nfunc main() {\n\tn := 10\n\tfor i := 0; i \u003c n; i++ {\n\t\tfmt.Println(fib(i))\n\t}\n}\n```\n\n```console\n$ mingo main.go\n```\n\n```go\npackage main;import \"fmt\";func fib(n int)int{if n\u003c=1{return n};return fib(n-1)+fib(n-2)};func main(){n:=10;for i:=0;i\u003cn;i++{fmt.Println(fib(i))}};\n```\n\n---\n\nAn example of minifying [cLive](https://github.com/koki-develop/clive):\n\n- [Minified #128 - koki-develop/clive](https://github.com/koki-develop/clive/pull/128)\n\n## LICENSE\n\n[MIT](./LICENSE)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoki-develop%2Fmingo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkoki-develop%2Fmingo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoki-develop%2Fmingo/lists"}