autodocs

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Type

type Type struct {
	Name       string
	Comment    string
	LineNumber int
}

Type represents a type in a Go source file.

func GetTypeDocumentation

func GetTypeDocumentation(typeName string, filePath string) (*Type, error)

GetTypeDocumentation tries to gather documentation about the given type.

func (*Type) Endpoint

func (typ *Type) Endpoint() string

Endpoint returns the REST endpoint for that type.

func (typ *Type) GitHubLink() string

GitHubLink returns link to display the type in GitHub.

Jump to

Keyboard shortcuts

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