-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
10 changed files
with
236 additions
and
156 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: Code Lint | ||
on: [push, pull_request] | ||
jobs: | ||
lint: | ||
name: Lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set up Go 1.17 | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: 1.17.x | ||
- name: Check out code into the Go module directory | ||
uses: actions/checkout@v2.3.4 | ||
- name: Cache Dependencies | ||
uses: actions/cache@v2.1.6 | ||
with: | ||
path: ~/go/pkg/mod | ||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | ||
- name: Download lint tools | ||
run: make tools | ||
- name: Lint tests | ||
run: make lint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
default: run | ||
|
||
install: | ||
cd cmd/server && go install . | ||
|
||
lint: | ||
golangci-lint run | ||
go mod tidy -v && git --no-pager diff --quiet go.mod go.sum | ||
|
||
tools: tool-golangci-lint tool-fumpt | ||
|
||
tool-golangci-lint: | ||
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sudo sh -s -- -b $(go env GOPATH)/bin v1.40.1 | ||
|
||
tool-fumpt: | ||
go get -u mvdan.cc/gofumpt | ||
|
||
todo: | ||
find . -name '*.go' \! -name '*_generated.go' -prune | xargs grep -n TODO | ||
|
||
run: | ||
go run cmd/server/main.go | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,15 @@ | ||
# WORD2PNGUI | ||
This is an example of use the WASM decoder from the [world2png](https://github.com/theskyinflames/word2png#wasm) repo. Visit it for further information. | ||
|
||
## open file dialog https://codepen.io/udaymanvar/pen/MWaePBY?editors=1111 | ||
## buttons https://getcssscan.com/css-buttons-examples | ||
## layout https://griddy.io/ | ||
## form https://www.sanwebe.com/2014/08/css-html-forms-designs | ||
<img src="doc/decode.png" alt="decoding" style="width:800px;background-color:white;padding:0px"/> | ||
|
||
## How to run | ||
`make run` | ||
|
||
After that, go to http://localhost:9090/ | ||
|
||
## TODO | ||
* Adding the encoding form | ||
|
||
## Disclaimer | ||
I've coded it only for fun. Please read the LICENSE. I hope you enjoy using it as much as I enjoyed building it. All ideas are welcome. Please let me know what you would add or change. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.