https://github.com/lloydlobo/hexed
Tiny hexdump tool for the web
https://github.com/lloydlobo/hexed
alpinejs go tailwindcss wasm
Last synced: 2 months ago
JSON representation
Tiny hexdump tool for the web
- Host: GitHub
- URL: https://github.com/lloydlobo/hexed
- Owner: lloydlobo
- Created: 2024-12-21T14:30:25.000Z (4 months ago)
- Default Branch: master
- Last Pushed: 2024-12-26T12:11:33.000Z (4 months ago)
- Last Synced: 2024-12-26T13:25:31.071Z (4 months ago)
- Topics: alpinejs, go, tailwindcss, wasm
- Language: HTML
- Homepage: https://lloydlobo.github.io/hexed/
- Size: 704 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
:q
# hexed
[//]: # (hexadecimal editor)
[](https://github.com/lloydlobo/hextxt/actions/workflows/static.yml)

## Build
- First, compile Go code to WebAssembly:
```sh
GOOS=js GOARCH=wasm go build -o main.wasm main.go
```- Copy the WebAssembly JavaScript support file from local Go installation:
```sh
cp "$(go env GOROOT)/lib/wasm/wasm_exec.js" .
# or
cp "$(go env GOROOT)/misc/wasm/wasm_exec.js" .
```See guide.
- Final directory structure should look like:
```txt
app/
├── index.html
├── main.wasm
└── wasm_exec.js
```- Push these files to GitHub/GitLab and enable Pages.
## Develop
```sh
find -name '*go' -or -name '*.html' -or -name '*.js' | entr -crs "GOOS=js GOARCH=wasm go build -o main.wasm main.go; python -m http.server"
```## Thanks
-
-## Related
-