entity

package
v0.0.0-...-2f7ad66 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Todo

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

func NewTodo

func NewTodo(
	id TodoID,
	text string,
	done bool,
) (*Todo, error)

func (*Todo) Done

func (t *Todo) Done() bool

func (*Todo) ID

func (t *Todo) ID() TodoID

func (*Todo) Text

func (t *Todo) Text() string

func (*Todo) Validate

func (t *Todo) Validate() error

type TodoID

type TodoID string

func ParseTodoID

func ParseTodoID(value string) (TodoID, error)

func (TodoID) String

func (i TodoID) String() string

func (TodoID) Validate

func (i TodoID) Validate() error

type Todos

type Todos []*Todo

Jump to

Keyboard shortcuts

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