drafty

package
v0.15.7 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2018 License: GPL-3.0 Imports: 3 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 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