Documentation
¶
Index ¶
- func PrintComments(comments []Comment, asJSON bool) error
- func PrintDatabases(dbs []Database, asJSON bool) error
- func PrintError(err error)
- func PrintInfo(message string)
- func PrintPage(page Page, asJSON bool) error
- func PrintPages(pages []Page, asJSON bool) error
- func PrintSearchResults(results []SearchResult, asJSON bool) error
- func PrintSuccess(message string)
- func PrintViewedPage(page Page, comments []Comment, asJSON bool) error
- func PrintWarning(message string)
- func RenderMarkdown(content string) error
- func RenderPage(content string) error
- func RenderPageWithComments(content string, comments []Comment) error
- func Truncate(s string, maxLen int) string
- func TruncateID(id string) string
- type Comment
- type Database
- type MarkdownRenderer
- type Page
- type SearchResult
- type Table
- type UserError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrintComments ¶
func PrintDatabases ¶
func PrintError ¶
func PrintError(err error)
func PrintPages ¶
func PrintSearchResults ¶
func PrintSearchResults(results []SearchResult, asJSON bool) error
func PrintSuccess ¶
func PrintSuccess(message string)
func PrintViewedPage ¶ added in v0.6.0
func PrintWarning ¶
func PrintWarning(message string)
func RenderMarkdown ¶
func RenderPage ¶
RenderPage renders a Notion page with pretty metadata header
func RenderPageWithComments ¶ added in v0.6.0
func TruncateID ¶
Types ¶
type MarkdownRenderer ¶
type MarkdownRenderer struct {
// contains filtered or unexported fields
}
func NewMarkdownRenderer ¶
func NewMarkdownRenderer() (*MarkdownRenderer, error)
func (*MarkdownRenderer) RenderAndPrint ¶
func (m *MarkdownRenderer) RenderAndPrint(content string) error
type SearchResult ¶
Click to show internal directories.
Click to hide internal directories.