Documentation
¶
Index ¶
- func ConvertCase(input string, to string) (string, error)
- func Diff(a, b string, contextLines int) string
- func Escape(input string, mode string) (string, error)
- func RenderMarkdown(input []byte, toHTML bool, syntaxHighlight bool, theme string) ([]byte, error)
- func Unescape(input string, mode string) (string, error)
- type TextInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RenderMarkdown ¶
Types ¶
type TextInfo ¶
type TextInfo struct {
Characters int `json:"characters"`
Words int `json:"words"`
Lines int `json:"lines"`
Sentences int `json:"sentences"`
Bytes int `json:"bytes"`
BytesHuman string `json:"bytes_human"`
IsASCII bool `json:"is_ascii"`
HasUnicode bool `json:"has_unicode"`
}
TextInfo holds analysis results for a text string.
Click to show internal directories.
Click to hide internal directories.