Install Go
Download and install go for your machine from https://golang.org/dl/
Mac OS - M1 - https://golang.org/dl/go1.17.3.darwin-arm64.pkg
M1 Tweaks for Kafka
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 build --tags dynamic
IntelliJ Integration
Install Go Plugin
In IntelliJ, click Preferences, Plugins and search for Go. Click Install.
Set Go GOTOOT and select the SDK or click + to add the recently installed version.
Also, you can add go support to a project module if if already exists.
Sync Dependencies