gemlog-cli/gemlog/core.go

23 lines
546 B
Go

package gemlog
import (
"time"
)
// GemlogEntry represents a single gemlog post entry
type GemlogEntry struct {
Title string `json:"title"`
Slug string `json:"slug"`
Date time.Time `json:"date"`
// Tags []string `json:"tags"`
Gemtxt string `json:"gemtxt"`
}
// GemlogListEntry is for showing a list of gemlog entries without the main Gemtxt
type GemlogListEntry struct {
Title string `json:"title"`
Slug string `json:"slug"`
Date time.Time `json:"date"`
ID string `json:"id"`
Rev string `json:"rev"`
}