Documentation
¶
Index ¶
- type Note
- func (n *Note) FromJson(data []byte) error
- func (n *Note) GetContent() string
- func (n *Note) GetCreatedAt() string
- func (n *Note) GetHeadline() string
- func (n *Note) GetId() utils.NoteId
- func (n *Note) GetTags() []string
- func (n *Note) GetUpdatedAt() string
- func (n *Note) SetContent(content string)
- func (n *Note) SetHeadline(headline string)
- func (n *Note) SetTags(tags []string)
- func (n *Note) SetUpdatedAt(updatedAt string)
- func (n *Note) ToJson() ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Note ¶
type Note struct {
Id utils.NoteId `json:"id"`
Headline string `json:"headline"`
Content string `json:"content"`
Tags []string `json:"tags"`
CreatedAt string `json:"created_at"`
UpdatedAt string `json:"updated_at"`
}
func (*Note) GetContent ¶
func (*Note) GetCreatedAt ¶
func (*Note) GetHeadline ¶
func (*Note) GetUpdatedAt ¶
func (*Note) SetContent ¶
func (*Note) SetHeadline ¶
func (*Note) SetUpdatedAt ¶
Click to show internal directories.
Click to hide internal directories.