0.4.9 • Published 2 months ago

@wasm-fmt/gofmt v0.4.9

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

Test

Install

npm

npm install @wasm-fmt/gofmt

jsr.io

npx jsr add @fmt/gofmt

Usage

import init, { format } from "@wasm-fmt/gofmt";

await init();

const source = `
package main
import "fmt"
func main(){fmt.Println("Hello, 世界")
}
`;

const formatted = format(source);
console.log(formatted);

Vite users tip:

import init, { format } from "@wasm-fmt/gofmt/vite";

Build from source

# 1. clone this repo
git clone https://github.com/wasm-fmt/gofmt.git

# 2. install TinyGo https://tinygo.org/getting-started/install/

# 3. build
pnpm build

# 4. test
pnpm run /^test:/
0.4.9

2 months ago

0.4.8

2 months ago

0.4.7

4 months ago

0.4.6

6 months ago

0.4.5

8 months ago

0.4.4

8 months ago

0.4.3

8 months ago

0.4.2

8 months ago

0.4.1

9 months ago

0.4.0

9 months ago

0.3.3

9 months ago

0.3.1

9 months ago

0.3.0

9 months ago

0.2.0

9 months ago

0.1.3

9 months ago

0.1.2

9 months ago

0.1.1

9 months ago

0.1.0

9 months ago

0.0.3

9 months ago

0.0.2

9 months ago

0.0.1

9 months ago