format

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 9, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteMarkdown

func WriteMarkdown(pkg *doc.Package, out io.Writer) error

WriteMarkdown is a convenience alias that includes all symbols. Deprecated: use WriteMarkdownWithOptions with explicit flags.

func WriteMarkdownWithOptions

func WriteMarkdownWithOptions(pkg *doc.Package, out io.Writer, includePrivate, includeUndocumented bool) error

WriteMarkdownWithOptions generates a markdown representation of a Go package with options for visibility and documentation filters.

Parameters:

  • pkg: The Go package to document.
  • out: The writer to output the markdown to.
  • includePrivate: Flag to include non-exported (private) symbols.
  • includeUndocumented: Flag to include symbols missing documentation.

Returns:

  • error: Any error encountered during processing.

Types

type StructFieldInfo

type StructFieldInfo struct {
	Name       string
	Type       string
	Comment    string
	JSONTag    string
	DynamoTag  string
	DynamoType string
}

StructFieldInfo represents metadata about a struct field, including its name, type, comments, and any struct tags like json or dynamodbav.

Jump to

Keyboard shortcuts

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