Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Todo ¶
type Todo struct { ID int `json:"id" db:"id"` Task string `json:"task" db:"task"` Status TodoStatus `json:"status" db:"status"` DueDate sql.NullTime `json:"due_date" db:"due_date"` CompletedAt sql.NullTime `json:"completed_at" db:"completed_at"` CreatedAt time.Time `json:"created_at" db:"created_at"` UpdatedAt time.Time `json:"updated_at" db:"updated_at"` }
type TodoStatus ¶
type TodoStatus string
const ( TodoStatusPending TodoStatus = "pending" TodoStatusDone TodoStatus = "done" TodoStatusInProgress TodoStatus = "in_progress" )
func (*TodoStatus) Scan ¶
func (s *TodoStatus) Scan(v interface{}) error
Scan implements the sql.Scanner interface
func (*TodoStatus) String ¶
func (s *TodoStatus) String() string
String returns the string version of TodoStatus.
Click to show internal directories.
Click to hide internal directories.