An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

          

mingo


GitHub release (latest by date)
GitHub Workflow Status
Go Report Card
LICENSE


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