↓ Skip to main content
Go

Documenting GO

·1 min
Table of Contents

Documentation is a huge part of writing any software. In java you have JavaDoc, which most of the developers adhere to. It is healthy and rich way of exposing the source documentation.

You spend more time reading source code than writing it, and hence it is critical to do the documentation properly. — - Ask any engineer

GoDoc is conceptually related to Docstring and Javadoc but is simpler.

Godoc comments are just good comments, the sort you would want to read even if godoc didn’t exist. — - Official godocblog

Convention
#

To document a type, variable, constant, function, or even a package, write a regular comment directly preceding its declaration, with no intervening blank line.

godoc

Author
Samarthya
Engineer, learner, tinkerer. This is my trophy shelf of everyday work and leisure.

Related

K8S RBAC

·2 mins
What? # Role Based Access Control(s) is a way of regulating access to entities like storage, network etc. RBAC authorization uses rbac.authorization.k8s.io API group. API Objects # There are 4 kind of kubernetes object

SCM for git clone

·7 mins
Having used SCM plugins for quite sometime, I thought - WHY I have never used them to clone a repository and while I employ the personal access token (NOW)- The weapon of choice, I have never tried it myself.