Table of Contents |
---|
Install GoGo
Download and install go for your machine from https://golang.org/dl/
On Mac:
Mac OS - M1 - https://golang.org/dl/go1.17.3.darwin-arm64.pkg
M1 Tweaks for Kafka
Code Block |
---|
arch -arm64 /opt/homebrew/bin/brew install librdkafka
arch -arm64 /opt/homebrew/bin/brew install pkg-config
arch -arm64 /opt/homebrew/bin/brew install libcrypto |
Go installs itself in /usr/local/go/bin/go
Update your path to include $USER/go/bin
On Mac:
$ vi ~/.zshrc
Code Block |
---|
export PATH="$PATH:$(go env GOPATH)/bin" |
$ source ~/.zshrcgo build --tags dynamic
IntelliJ Integration
Install Go Plugin
...
Also, you can add go support to a project module if if already exists.
Add your $USER/go/bin to your go path
Sync Dependencies
Adding Interrupt Support in Debugging (Doesn't Work )
- Navigate to Preferences → Keymap
- Scroll to Debugger Actions and find "Interrupt".
- Right mouse click and select "Add Keyboard Shortcut"
- Click the input box and hot CTRL-C on your keyboard.
- Click OK
- Click Apply