zk/core/ids.go
Mickaël Menu 4bf660f934
Parse tags in Markdown documents (#5)
Many tag flavors are supported: `#hashtags`, `:colon:separated:tags:` and even Bear's [`#multi-word tags#`](https://blog.bear.app/2017/11/bear-tips-how-to-create-multi-word-tags/). If you prefer to use a YAML frontmatter, list your tags with the keys `tags` or `keywords`.
2021-03-06 19:38:52 +01:00

20 lines
258 B
Go

package core
type NoteId int64
func (id NoteId) IsValid() bool {
return id > 0
}
type CollectionId int64
func (id CollectionId) IsValid() bool {
return id > 0
}
type NoteCollectionId int64
func (id NoteCollectionId) IsValid() bool {
return id > 0
}