Documentation ¶ Index ¶ type Task type TaskRepository Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Task ¶ type Task struct { Id int `json:"id"` Title string `json:"title"` Content string `json:"content"` Category string `json:"category"` Statu string `json:"statu"` CreatedAt time.Time `json:"created_at"` } type TaskRepository ¶ type TaskRepository interface { CreateTask(ctx context.Context, task *Task) error ListTask(ctx context.Context) (*[]Task, error) UpdateTask(ctx context.Context, id int, task *Task) error DeleteTask(ctx context.Context, id int) error } Source Files ¶ View all Source files task.go task_repository.go Click to show internal directories. Click to hide internal directories.