postgres and such
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-17 23:37:43 -04:00
parent 088365c411
commit 6f7bcc9503
17 changed files with 423 additions and 36 deletions

View File

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