Skip to content

Instantly share code, notes, and snippets.

View matej-g's full-sized avatar

Matej Gera matej-g

  • Coralogix
  • Berlin
View GitHub Profile
@matej-g
matej-g / generate_go_work.md
Last active January 25, 2023 09:28
Generate `go.work` file automatically with this two-liner

Go workspaces is a feature available from 1.18 (https://go.dev/doc/tutorial/workspaces).

If you work with repositories that have numerous nested Go modules, it can be annoying having to add each with a go work use command. You can run this two-liner from the base of the repository to initiate and create your go.work automatically, including all nested Go modules:

go work init
go work use $(find . -type f -name 'go.mod' -exec dirname {} \; | sort)
@matej-g
matej-g / zsh_tmux_minimalist_themes_config.md
Last active August 5, 2023 14:25
My simple, clean and minimalist Oh My ZSH + tmux setup