- in terminal, use the command:
go run .
- open a browser, type in http://127.0.0.1:21111 and press enter
- enjoy it
- in terminal, use this command:
sh build.sh
, and done!
You will get a docker image: json2yaml:v1 and a running container.
You can use Ctrl + C
to shutdown the running container.
Or use docker run -it --rm -p 21111:21111 json2yaml:v1
to run it again.
If you use it in different platform, you can edit build.sh,
you can use --platform to specify different platform,
such as --platform=linux/amd64(linux/arm64,darwin/arm64,windows/amd64)