package model

type File struct {
	ID       string
	Filename string
	Content  []byte
}

type Entry struct {
	ID        string `json:"id"`
	Title     string `json:"title"`
	Timestamp int64  `json:"timestamp"`
	Markdown  string // the entry contents
}

package model

type File struct {
	ID       string
	Filename string
	Content  []byte
}

type Entry struct {
	ID        string `json:"id"`
	Title     string `json:"title"`
	Timestamp int64  `json:"timestamp"`
    Markdown  string `json:"-"` // the entry contents
}

Save markdown only in .txt
Save markdown only in .txt
