mingo

command module
v0.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 9, 2024 License: MIT Imports: 1 Imported by: 0

README

mingo

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

Go also wants to be minified.

Contents

Installation

Homebrew Tap

$ brew install koki-develop/tap/mingo

go install

$ go install github.com/koki-develop/mingo@latest

Releases

Download the binary from the releases page.

Usage

$ 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

// 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))
	}
}
$ mingo 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))}};

An example of minifying cLive:

LICENSE

MIT

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL