#####Windows cmd:
cd <PROJECT-ROOT>
go build -v -o bin\tinyfilter.exe dev\tinyfilter.go
git bash:
cd <PROJECT-ROOT>
go build -v -o bin/tinyfilter.exe dev/tinyfilter.go
#####FreeBSD
cd <PROJECT-ROOT>
go build -v -o bin/tinyfilter dev/tinyfilter.go
- Task
- Styleguide
- Example web app
- Direct link to Taskfile.yml
-
Install go, dlv
- Golang, Getting started
- Delve, installation
-
Setup remote debug in IDEA, see JetBrains blog for instructions.
- Host: ip of remote computer
- port: 2345
-
Remote, build in terminal
cd <PROJECT-ROOT> go build -v -o bin/tinyfilter dev/tinyfilter.go
-
Remote, start debugger in terminal
dlv --listen=:2345 --headless=true --api-version=2 --accept-multiclient exec ./bin/tinyfilter r
-
Run debug config. You can run it multiple time without re-compilation.
-
Kill Delve, other shell window
killall -HUP dlv
Other option is running tests at remote computer. For do that, skip step 3 and use other command at step 4:
dlv --listen=:2345 --headless=true --api-version=2 --accept-multiclient test ./dev/util/exec/
Please note need set folder containing test code.
- Echo, https://echo.labstack.com/
- GoByExample, https://gobyexample.com/
- WEB, slava: http://192.168.1.21:8085/
- Ping: test service online
- Reload tinyproxy: restart service
- Get a current status of tinyproxy
- Turn Youtube on/off:
- change config of tinyproxy
- restart tinyproxy service
- commands http://HO.ST:PORT/c/youtube/on/?key=KEY -- youtube on http://HO.ST:PORT/c/youtube/off/?key=KEY -- youtube off