drafty

package
v0.15.6 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2018 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

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)

DraftyToPlainText converts message payload from Drafy format to string. If content is a string, then it's returned unchanged. If content is not recognized as either Drafy (as a map[string]interface{}) or 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