drafty

package
v0.16.4-rc3 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2020 License: GPL-3.0 Imports: 4 Imported by: 4

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