No release in over a year
An Asciidoctor extension that adds support for a 'godoc' macro to asciidoc documents. This extension allows referencing Go entities in asciidoc documents, linking to their documentation on https://pkg.go.dev.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 13.0.0

Runtime

>= 2.0.0, < 3.0.0
 Project Readme

asciidoctor-godoc

Gem Version

An asciidoctor extension that adds support for a godoc macro. The macro allows you to reference types and functions in a Go package by name, and links to their documentation on pkg.go.dev.

For example, given the following:

Input
The godoc:http[] package provides
godoc:net/http#ServeMux[] for request routing.
Register zero or more godoc:net/http#Handler[handlers] against it,
and specify it as a godoc:net/http#Server.Handler[]
in your server's configuration.
Output

The {url-godoc}/http[http] package provides {url-godoc}/net/http#ServeMux[http.ServeMux] for request routing. Register zero or more {url-godoc}/net/http#Handler[handlers] against it, and specify it as a {url-godoc}/net/http#Server.Handler[Server.Handler] in your server’s configuration.

See https://abhinav.github.io/asciidoctor-godoc/ for complete documentation.