postgres and such
This commit is contained in:
@@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user