Skip to content

Instantly share code, notes, and snippets.

@goeroeku
Created February 3, 2019 14:37
Show Gist options
  • Save goeroeku/ff4eccec2c934169699a00deb5586393 to your computer and use it in GitHub Desktop.
Save goeroeku/ff4eccec2c934169699a00deb5586393 to your computer and use it in GitHub Desktop.
All about Go-Lang

Install golang

sudo pacman -S go

tools for hot reload

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
@goeroeku
Copy link
Author

goeroeku commented Feb 3, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment