notes

package
v0.0.0-...-310ba95 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllNotes

func AllNotes(target, base string, opts ...Option) (map[string][]Note, error)

AllNotes returns all notes for all packages in a directory

Types

type Note

type Note struct {
	Tag  string
	UID  string
	Body string
	Loc  gomate.CodeRef
}

Note is a godoc note found in Go source code comments

func (Note) String

func (n Note) String() string

String returns a simple representation of a note

type Option

type Option func(*config)

Option allows customizing the note function default behavior

func WithTestdata

func WithTestdata() Option

WithTestdata will override the default behavior of skipping the testdata folder.

Directories

Path Synopsis
notes is a utility that recursively scans all note markings in a directory and returns a representation of those notes mapped by tag and ID to the actual note and location.
notes is a utility that recursively scans all note markings in a directory and returns a representation of those notes mapped by tag and ID to the actual note and location.

Jump to

Keyboard shortcuts

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