Vim Function to Generate a Comment in Go

Photo by Kaysha on Unsplash

OK, I’ll admit it. Sometimes I don’t add comments to describe my Go structs and functions. There, I said it. And after my linter properly chastises me, I dutifully work down the list of errors, adding the code comments… One at a time. I know… I know… I should just add the comments while I’m writing the code.

Well, today I found that task tedious. So I decided to write my very first Vim…

--

--

--

Just a guy who loves his wife, kids, and writing software.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Bootstrap 4: Cards — my favourite Bootstrap 4 component

How to Create an NFT Marketplace like OpenSea in Just7 Days!

Improving Database Development, CI/CD with Storage Snapshot

Performance Testing Types & Metrics

Data Storytelling in Python

My Experiences at Developer Conference Zambia 2019

Displaying code on Medium: The DO’s and DON’Ts

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Adam Presley

Adam Presley

Just a guy who loves his wife, kids, and writing software.

More from Medium

Tran -🖥️ Securely transfer and send anything between computers with TUI.

Docker buildx on Apple Silicon

Quickly Configure Neovim for Go Development

Reinvent the Wheel Ep. 1: Removing Unused Files