Discover Packages
github.com/garritfra/godo
graph
model
package
Version:
v0.0.0-...-da05238
Opens a new window with list of versions in this module.
Published: Mar 20, 2022
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type CreateTodoInput struct {
Text string `json:"text"`
}
type DeleteTodoInput struct {
ID string `json:"id"`
}
type Todo struct {
gorm .Model
ID string `json:"id" gorm:"column:id"`
Text string `json:"text" gorm:"column:text"`
Done bool `json:"done" gorm:"column:done"`
}
type UpdateTodoInput struct {
ID string `json:"id"`
Text *string `json:"text"`
Done *bool `json:"done"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.