https://github.com/koki-develop/mingo
Go also wants to be minified.
https://github.com/koki-develop/mingo
golang minify
Last synced: 10 months ago
JSON representation
Go also wants to be minified.
- Host: GitHub
- URL: https://github.com/koki-develop/mingo
- Owner: koki-develop
- License: mit
- Created: 2024-03-05T14:21:18.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-30T08:24:04.000Z (almost 2 years ago)
- Last Synced: 2025-03-23T03:51:15.172Z (11 months ago)
- Topics: golang, minify
- Language: Go
- Homepage:
- Size: 68.4 KB
- Stars: 14
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
mingo
Go also wants to be minified.
## Contents
- [Contents](#contents)
- [Installation](#installation)
- [Homebrew Tap](#homebrew-tap)
- [`go install`](#go-install)
- [Releases](#releases)
- [Usage](#usage)
- [Example](#example)
- [LICENSE](#license)
## Installation
### Homebrew Tap
```console
$ brew install koki-develop/tap/mingo
```
### `go install`
```console
$ go install github.com/koki-develop/mingo@latest
```
### Releases
Download the binary from the [releases page](https://github.com/koki-develop/mingo/releases/latest).
## Usage
```console
$ mingo --help
Go language also wants to be minified.
Usage:
mingo [flags] [files]...
Flags:
-h, --help help for mingo
-v, --version version for mingo
-w, --write write result to (source) file instead of stdout
```
### Example
```go
// main.go
package main
import "fmt"
func fib(n int) int {
if n <= 1 {
return n
}
return fib(n-1) + fib(n-2)
}
func main() {
n := 10
for i := 0; i < n; i++ {
fmt.Println(fib(i))
}
}
```
```console
$ mingo main.go
```
```go
package main;import "fmt";func fib(n int)int{if n<=1{return n};return fib(n-1)+fib(n-2)};func main(){n:=10;for i:=0;i