drafty

package
v0.16.4 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2020 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package drafty contains utilities for conversion from Drafty to plain text.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToPlainText

func ToPlainText(content interface{}) (string, error)

ToPlainText converts message payload from Drafy format to string. If content is plain string, then it's returned unchanged. If content is not recognized as either Drafy (as a map[string]interface{}) or as a string, an error is returned.

Types

This section is empty.

Jump to

Keyboard shortcuts

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