Skip to content

Gemini, Go Meetup and new Neovim tools dropped

  • I'm fortunate to work at a company which allows the use of AI, and in this case Google Gemini Advanced. It's really, really fast but I still feel Claude (Sonnet 3.5) is a lot more accurate and has better overall taste. But it's still extremely helpful to have "AI chat" at your disposal. A colleague of mine took a third-party API spec and asked Gemini to write the Go types for it for him. Awesome!
  • This week was the most sunny in Gothenburg since, I don't even know when. Toying with the idea to start commuting to work by bike.
  • It was so fun and uplifting to be speaking at the latest Go Meetup here in Gothenburg. Let's keep this momentum up!

  • gitingest - essentially replace the github.com in repository URLs with gitingest.com and download the whole repo as one structured text file that you can upload to AI chat of your choice. If the text file becomes to large for Claude Sonnet 3.5 (my favorite pair-programming LLM), try Gemini, which has support for a larger context window.
  • lazydocker - I Use lazygit extensively and I recently saw there's also this project with a very similar UI that you can use to manage your containers. I have been using Podman's GUI dashboard as it gives a great overview of containers, images, volumes etc, but I appreciate not having to leave the terminal. And with lazydocker, you get even better overview IMHO.
  • pr.nvim - I was missing the capability to quickly get to the pull request associated with the line under the cursor. So I wrote this tool!
  • godoc.nvim - I wrote a small tool for reading Go documentation from within Neovim.
  • snacks.nvim's image - Folke is at it again, and as part of his endevour to serve us the buffet that is snacks.nvim, you can now enable the "image" feature, which will show images in Neovim. I use it to show images from markdown files primarily. It's absolutely awesome. Note that it requires a terminal with support for the kitty graphics protocol. I had to also make sure to have ImageMagick installed.
  • git-remove-branches - a shell script I wrote to finally get control of all stale local (and remote) branches. Put it on $PATH and run!
Example output of git-remove-branches

Here I'm running git-remove-branches for the first time in a git repo:

 git-remove-branches

Branch Status Summary:
🟢 Safe to delete   🔴 Needs review   ⚠️  Stale   🌐 Remote exists    Merged
───────────────────────────────────────────────────────────
🔴    🌐    bench
🔴          bump-go
🔴 ⚠️       cgo
🔴          custom-log
🔴 ⚠️       debug_files
🔴          delve-output
🔴    🌐    docker
🔴          docs-dap
🔴          docs-fix
🔴          docs-fix-testify
🔴          docusaurus
🔴    🌐    fail-build-go1.24
🔴          fix-golist-windows
🔴          fix-links
🟢        fix-typo
🔴          folderstructure
🔴          format-testify-lookup-queries
🟢        gobump
🟢        gotestsum
🔴          ignore-windows
🔴          loop-uv
🔴 ⚠️       manual-release
🔴          missing-output
🔴          other-process
🔴    🌐    perf/async-golist
🔴          perf/cwd
🔴          perf/decode
🔴          perf/golist-cmd
🔴          perf/golist-cwd
🔴          release-please--branches--main
🔴 ⚠️ 🌐    runners-refactor
🔴          sanitization
🔴          t-run
🔴 ⚠️       table-test-without-struct-fields
🔴    🌐    testify-operand
🔴          testify-regexp
🔴          windows
🔴          xtestgofiles
🔴    🌐    zig

🟢 Safe to delete:
- fix-typo
- gobump
- gotestsum
Delete these local and remote branches? (y/N) y

Remote branch origin/fix-typo does not exist
Deleting local branch fix-typo
Deleted branch fix-typo (was 2c106ca).
Remote branch origin/gobump does not exist
Deleting local branch gobump
Deleted branch gobump (was e76726a).
Remote branch origin/gotestsum does not exist
Deleting local branch gotestsum
Deleted branch gotestsum (was 57cece8).

🔴 Unmerged branches:

📝 Branches with active PRs (skipping):
- bench
- docker
- fail-build-go1.24
- testify-operand

 Unmerged branches without active PRs:
- bump-go
- cgo
- custom-log
- debug_files
- delve-output
- docs-dap
- docs-fix
- docs-fix-testify
- docusaurus
- fix-golist-windows
- fix-links
- folderstructure
- format-testify-lookup-queries
- ignore-windows
- loop-uv
- manual-release
- missing-output
- other-process
- perf/async-golist
- perf/cwd
- perf/decode
- perf/golist-cmd
- perf/golist-cwd
- release-please--branches--main
- runners-refactor
- sanitization
- t-run
- table-test-without-struct-fields
- testify-regexp
- windows
- xtestgofiles
- zig
Force delete these unmerged local and remote branches? (y/N) y

Remote branch origin/bump-go does not exist
Deleting local branch bump-go
Deleted branch bump-go (was 80adb51).
Remote branch origin/cgo does not exist
Deleting local branch cgo
Deleted branch cgo (was 67a2676).
Remote branch origin/custom-log does not exist
Deleting local branch custom-log
Deleted branch custom-log (was 9466ecd).
Remote branch origin/debug_files does not exist
Deleting local branch debug_files
Deleted branch debug_files (was 8b96f54).
Remote branch origin/delve-output does not exist
Deleting local branch delve-output
Deleted branch delve-output (was f6f057b).
Remote branch origin/docs-dap does not exist
Deleting local branch docs-dap
Deleted branch docs-dap (was d23fe7d).
Remote branch origin/docs-fix does not exist
Deleting local branch docs-fix
Deleted branch docs-fix (was d7939cf).
Remote branch origin/docs-fix-testify does not exist
Deleting local branch docs-fix-testify
Deleted branch docs-fix-testify (was 669c596).
Remote branch origin/docusaurus does not exist
Deleting local branch docusaurus
Deleted branch docusaurus (was acacf75).
Remote branch origin/fix-golist-windows does not exist
Deleting local branch fix-golist-windows
Deleted branch fix-golist-windows (was 1ca3458).
Remote branch origin/fix-links does not exist
Deleting local branch fix-links
Deleted branch fix-links (was 1067312).
Remote branch origin/folderstructure does not exist
Deleting local branch folderstructure
Deleted branch folderstructure (was ad61b6e).
Remote branch origin/format-testify-lookup-queries does not exist
Deleting local branch format-testify-lookup-queries
Deleted branch format-testify-lookup-queries (was 5ab7f85).
Remote branch origin/ignore-windows does not exist
Deleting local branch ignore-windows
Deleted branch ignore-windows (was c408da1).
Remote branch origin/loop-uv does not exist
Deleting local branch loop-uv
Deleted branch loop-uv (was 11d5b6c).
Remote branch origin/manual-release does not exist
Deleting local branch manual-release
Deleted branch manual-release (was 45f0c8a).
Remote branch origin/missing-output does not exist
Deleting local branch missing-output
Deleted branch missing-output (was 000ff3d).
Remote branch origin/other-process does not exist
Deleting local branch other-process
Deleted branch other-process (was 6f403b3).
Deleting remote branch origin/perf/async-golist
Deleting local branch perf/async-golist
Deleted branch perf/async-golist (was 7d50d12).
Remote branch origin/perf/cwd does not exist
Deleting local branch perf/cwd
Deleted branch perf/cwd (was 56bfcb4).
Remote branch origin/perf/decode does not exist
Deleting local branch perf/decode
Deleted branch perf/decode (was 9c18f08).
Remote branch origin/perf/golist-cmd does not exist
Deleting local branch perf/golist-cmd
Deleted branch perf/golist-cmd (was 1255852).
Remote branch origin/perf/golist-cwd does not exist
Deleting local branch perf/golist-cwd
Deleted branch perf/golist-cwd (was 7fca7e9).
Remote branch origin/release-please--branches--main does not exist
Deleting local branch release-please--branches--main
Deleted branch release-please--branches--main (was b2dcbd1).
Deleting remote branch origin/runners-refactor
Deleting local branch runners-refactor
Deleted branch runners-refactor (was 832f76c).
Remote branch origin/sanitization does not exist
Deleting local branch sanitization
Deleted branch sanitization (was 1b0f16b).
Remote branch origin/t-run does not exist
Deleting local branch t-run
Deleted branch t-run (was 7238662).
Remote branch origin/table-test-without-struct-fields does not exist
Deleting local branch table-test-without-struct-fields
Deleted branch table-test-without-struct-fields (was 3f21f6a).
Remote branch origin/testify-regexp does not exist
Deleting local branch testify-regexp
Deleted branch testify-regexp (was 3ec3a7d).
Remote branch origin/windows does not exist
Deleting local branch windows
Deleted branch windows (was 7083caf).
Remote branch origin/xtestgofiles does not exist
Deleting local branch xtestgofiles
Deleted branch xtestgofiles (was 06c586f).
Deleting remote branch origin/zig
Deleting local branch zig
Deleted branch zig (was 7b8734d).

And let's run it once more:

 git-remove-branches

Branch Status Summary:
🟢 Safe to delete   🔴 Needs review   ⚠️  Stale   🌐 Remote exists    Merged
───────────────────────────────────────────────────────────
🔴    🌐    bench
🔴    🌐    docker
🔴    🌐    fail-build-go1.24
🔴    🌐    testify-operand

🔴 Unmerged branches:

📝 Branches with active PRs (skipping):
- bench
- docker
- fail-build-go1.24
- testify-operand

Comments