Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Barn ¶
type Barn struct { BarnSetting QnAs []QnACard `toml:"q_a,omitempty" json:"q_a,omitempty"` }
Barn - 一组卡片的配置
func ParseTomlContent ¶
ParseTomlContent takes a file path and parses the .apkg.md config file.
type BarnSetting ¶
type BarnSetting struct { Title string `toml:"title,omitempty" json:"title,omitempty"` // RuntimeEnabled if set true, record runtime to original file when created // todo: 回写的时候会改变格式,不是很理想,再想想办法,或者开发其他 parser // todo: 目前只有回写,还不支持读取时沿用原来的 ID RuntimeEnabled bool `toml:"runtime,omitempty" json:"runtime,omitempty"` // Meta - 卡片 Meta 的默认配置,被具体的卡片覆盖 Meta }
type Meta ¶
type Meta struct { Tags []string `toml:"tags,omitempty" json:"tags,omitempty"` ContentFormatter apkg.NoteContentFormatter `toml:"content_fmt,omitempty" json:"content_fmt,omitempty"` }
Click to show internal directories.
Click to hide internal directories.