Generating Application Specific Go Documentation Using Go AST and Antora
dev.to·4h·
Discuss: DEV
Flag this post

Motivation

In one of my projects I was working on some in-house Go application to manage complex task pipelines on Kubernetes. On a high level, a task consists of one or multiple steps that are executed in order. Engineers would contribute tasks in the form of new Go files. Different teams collaborate on those tasks. Engineers running the tasks need to understand how to configure, debug and operate them correctly. Therefore, having good documentation is crucial.

The biggest challenge with documentation, however, is to keep it up-to-date. This becomes more challenging the further away the documentation is kept from the source code. In the ideal scenario, the documentation is close to the source code, e.g. in the form of [JavaDoc](https://docs.oracle.com/javase/8/docs/technote…

Similar Posts

Loading similar posts...