sudo pacman -S go
install auto reload fol all golang
go get -u github.com/oxequa/realize
buat new config
realize init
hasilnya kaya gini :
settings:
legacy:
force: false
interval: 0ms
server:
status: true
open: false
port: 5002
host: localhost
schema:
- name: iris
path: /home/aic/GoLang/src/lab/iris
commands:
fmt:
status: true
build:
status: true
method: go build -o ./iris // point penting build, untuk proses run
run:
status: true
method: ./iris // point penting run dari hasil build
watcher:
extensions:
- go
paths:
- /
ignored_paths:
- .git
- .realize
- vendor
https://github.com/oxequa/realize