Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder interface { WithID(id int) Builder WithTask(task string) Builder WithCompleted(completed bool) Builder Build() *Todo }
func NewBuilder ¶
func NewBuilder() Builder
type Todo ¶
type Todo struct {
// contains filtered or unexported fields
}
func (*Todo) CompleteTodo ¶
func (u *Todo) CompleteTodo()
func (*Todo) ToTransfer ¶
func (u *Todo) ToTransfer() *TodoTransfer
type TodoTransfer ¶
type TodoTransfer struct { ID int `json:"id"` Task string `json:"task"` Done *bool `json:"completed"` }
func (*TodoTransfer) ToModel ¶
func (u *TodoTransfer) ToModel() *Todo
Click to show internal directories.
Click to hide internal directories.