todo

package
v0.0.0-...-4a656d5 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2021 License: CC0-1.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func New

func New(dsn string) *Client

func (*Client) Complete

func (c *Client) Complete(id string) error

Completeはタスクを完了する

func (*Client) CompleteByName

func (c *Client) CompleteByName(name string) error

CompleteByNameはタスクを完了する

func (*Client) Create

func (c *Client) Create(name string) error

Createはタスクを作成する

func (*Client) ListTasks

func (c *Client) ListTasks() ([]Task, error)

func (*Client) ShowTasks

func (c *Client) ShowTasks() (string, error)

type Task

type Task struct {
	ID   int
	Name string
	// Doneは完了状態を示す。trueなら終わったこととする
	Done bool
}

TaskはTODOリストのタスク

Jump to

Keyboard shortcuts

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