draft

package
v0.0.0-...-f990545 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 14, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DropDraft

func DropDraft()

Types

type Draft

type Draft struct {
	Text   string `json:"text"`
	Post   *Post  `json:"post"`
	IsTODO bool   `json:"isTodo"`
}

func RestoreOrNewDraft

func RestoreOrNewDraft(requestConfirm func() bool) Draft

func (Draft) IsEmpty

func (d Draft) IsEmpty() bool

func (Draft) SaveIfNeeded

func (d Draft) SaveIfNeeded() (bool, error)

type Post

type Post struct {
	URL     string `json:"url"`
	Title   string `json:"title"`
	Content string `jsong:"content"`
}

func (*Post) IsContentAvailable

func (p *Post) IsContentAvailable() bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL