content

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Content

type Content struct {
	// contains filtered or unexported fields
}

Content represents the original, and the processed content. `original` is set when the message is created, and can't be changed - just read, while `Processed` is consumed and modified by `Processor`s.

func NewContent

func NewContent(content string) *Content

NewContent creates a new content.

func (*Content) GetOriginal

func (c *Content) GetOriginal() string

GetOriginal returns the original, non-modified content.

func (*Content) GetProcessed

func (c *Content) GetProcessed() string

GetProcessed returns the content to be processed.

func (*Content) SetProcessed

func (c *Content) SetProcessed(content string)

SetProcessed sets the processed content.

Jump to

Keyboard shortcuts

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