Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
Types ¶
type Input ¶
type Input struct {
ID string `json:"-"`
Title string `json:"title,omitempty" binding:"optional"` // the new title: the first heading takes it, or one is added on top
Old string `json:"old,omitempty" binding:"optional"` // an exact text, with its case, to find once (or every time with all)
New string `json:"new,omitempty" binding:"optional"` // what replaces old or the body of section, empty to delete it
All bool `json:"all,omitempty" binding:"optional"` // replace every occurrence of old instead of refusing more than one
// Section is the words of a heading: what follows it, down to the next heading of its level or higher, becomes New.
Section string `json:"section,omitempty" binding:"optional"`
}
Input is one change of a note's text: Title renames it, Old is replaced by New, or Section has its body replaced by New.
Click to show internal directories.
Click to hide internal directories.