Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Amir M Pirhosseinloo amirphl

🎯
Focusing
View GitHub Profile
@amirphl
amirphl / go-first
Last active October 15, 2022 11:50
Most recommended libs, frameworks, practices, design, ...
View go-first
Golang:
- https://github.com/avelino/awesome-go
- https://github.com/tmrts/go-patterns
- https://github.com/quii/learn-go-with-tests
- https://github.com/inancgumus/learngo
- https://github.com/Alikhll/golang-developer-roadmap
- https://github.com/hoanhan101/ultimate-go
- https://github.com/dariubs/GoBooks
- https://golang.org/ref/mod
- https://github.com/geektutu/7days-golang
@amirphl
amirphl / editor.md
Last active May 19, 2023 09:03
make vim a good editor for Golang and Scala
View editor.md

To switch back between Golang and Scala: init.vim and init.lua

Golang

I followd the guide provided by this guy (https://octetz.com/docs/2019/2019-04-24-vim-as-a-go-ide/) and faced some problems:

  • The vim.plug should be copied inside ~/.config/nvim/autoload/ not ~/.var/app/io.neovim.nvim/data/nvim/site/autoload/.
  • The command :GoInstallBinaries installs the binaries like gopls (in my case) inside $HOME/go/bin. Therefore, $HOME/go/bin must be appended to the $PATH variable.
if [ -d "$HOME/go/bin" ] ; then
 PATH="$PATH:$HOME/go/bin"