todos

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultTemplate = `` /* 266-byte string literal not displayed */

DefaultTemplate is the default report template

Variables

This section is empty.

Functions

func WriteTodos

func WriteTodos(todos ToDos, writer io.Writer) error

WriteTodos renders a report of todos

Types

type ToDo

type ToDo struct {
	comments.Comment
	String string
}

ToDo represents a ToDo item

func NewToDo

func NewToDo(comment comments.Comment) *ToDo

NewToDo produces a pointer to a ToDo from a comment

type ToDos

type ToDos []ToDo

ToDos represents a list of ToDo items

func NewToDos

func NewToDos(comments comments.Comments) ToDos

NewToDos produces a list of ToDos from a list of comments

func (ToDos) Count

func (t ToDos) Count() int

Count returns the number of todos

Jump to

Keyboard shortcuts

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