add db query for listing gemlog enteries
This commit is contained in:
parent
09fb974bd2
commit
59b46d4902
5 changed files with 85 additions and 3 deletions
|
|
@ -16,6 +16,13 @@ type GemlogEntry struct {
|
|||
Gemtxt string `json:"gemtxt"`
|
||||
}
|
||||
|
||||
type GemlogListEntry struct {
|
||||
Title string `json:"title"`
|
||||
Slug string `json:"slug"`
|
||||
Date time.Time `json:"date"`
|
||||
ID string `json:"id"`
|
||||
}
|
||||
|
||||
// NewUUID generates a new UUID v4 using crypto/rand
|
||||
func NewUUID() (string, error) {
|
||||
uuid := make([]byte, 16)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue