db, handlers, and interfaces
All checks were successful
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/push/dryrun Pipeline was successful
ci/woodpecker/push/publish-tag Pipeline was successful
ci/woodpecker/push/publish-latest Pipeline was successful

This commit is contained in:
2024-06-15 21:33:14 -04:00
parent 3d29dadaf3
commit 09a957ca4b
12 changed files with 160 additions and 95 deletions

18
models/todo.go Normal file
View File

@@ -0,0 +1,18 @@
package models
import "github.com/google/uuid"
type Todo struct {
Id uuid.UUID
Name string
Done bool
}
func NewTodo(name string, done bool) Todo {
return Todo{
Id: uuid.New(),
Name: name,
Done: done,
}
}