godocmd

package module
v0.0.0-...-2efe6f1 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

README

godocmd

Markdown generator for golang documentations.

Run go generate ./... first.

Usage of ./godocmd:
  -output-dir string
    	output directory (default "./docs")
  -package-base string
    	package import basepath, output from "go list -m" (default "github.com/nickchen/godocmd")

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DocMD

type DocMD struct {
	// contains filtered or unexported fields
}

func New

func New() (*DocMD, error)

func (*DocMD) ProcessPackageDirs

func (d *DocMD) ProcessPackageDirs(outDir, packageBasePath string, dirs ...string) error

type Package

type Package struct {
	*doc.Package
	// FuncsFiltered filtered out examples and benchmarks
	FuncsFiltered []*doc.Func
	FuncsName     map[string]*doc.Func
}

func NewPackage

func NewPackage(mainPkg, testPkg *doc.Package) *Package

Directories

Path Synopsis
cmd
godocmd
docmd will generate Mark Down formated package documentation for provided paths
docmd will generate Mark Down formated package documentation for provided paths
fixture
one
Package one provide some novel functionality, for use in package testing
Package one provide some novel functionality, for use in package testing
two
Package two provide some novel functionality, for use in package testing
Package two provide some novel functionality, for use in package testing

Jump to

Keyboard shortcuts

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