Skip to content

Neuman968/go-image-palette

Repository files navigation

Go WebAssembly Image Palette Generator

Generate a color palette from an image all locally with web assembly and Go.

Click here for a Live Demo

Building WebAssembly Go code

Must have at least go version 1.22 installed.

cd into the go directory in this project. Build the wasm binary using the following command

GOOS=js GOARCH=wasm go build -o ../public/go-wasm.wasm

This will move the compiiled wasm binary to the public folder of the React project in the parent folder.