adoc

package
v0.6.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

package adoc renders go/doc comemnts as asciidoc

Provides objects specifically for documentation korrel8r domain packages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Domain

type Domain struct {
	*doc.Package
	// contains filtered or unexported fields
}

func NewDomain

func NewDomain(dir string) (*Domain, error)

func (*Domain) Asciidoc

func (p *Domain) Asciidoc(headingLevel int) string

Asciidoc formats the domain documentation in Asciidoc. Heading level 0 is a section heading "=".

func (*Domain) Printer

func (p *Domain) Printer() *Printer

type Printer

type Printer struct {
	*comment.Printer
	// contains filtered or unexported fields
}

Printer prints go/doc comments in asciidoc format.

Based on comment.MarkdownPrinter

func NewPrinter

func NewPrinter(p *comment.Printer) *Printer

func (*Printer) Asciidoc

func (p *Printer) Asciidoc(d *comment.Doc) string

Asciidoc returns a Asciidoc formatting of a comment.Doc object. See the comment.Printer documentation for ways to customize the Asciidoc output.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL