fml

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2021 License: CC-BY-SA-4.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Audio

type Audio struct {
	EntityID string
}

func (*Audio) ToString

func (a *Audio) ToString() string

type Image

type Image struct {
	EntityID string
	LinkURL  string
}

func (*Image) ToString

func (im *Image) ToString() string
type Link struct {
	EntityID string
	Text     string
}

func (*Link) ToString

func (link *Link) ToString() string

type Markdown

type Markdown struct {
	URL string
}

func (*Markdown) ToString

func (md *Markdown) ToString() string

type ParseError

type ParseError struct {
	Source   []rune
	Position int
	Message  string
}

func (*ParseError) Error

func (err *ParseError) Error() string

type Parser

type Parser interface {
	Parse(text string) (*Uta, error)
}

func NewParser

func NewParser() Parser

type Ren

type Ren interface {
	ToString() string
}

func NewAudio

func NewAudio(dict map[string]string) Ren

func NewImage

func NewImage(dict map[string]string) Ren
func NewLink(dict map[string]string) Ren

func NewMarkdown

func NewMarkdown(dict map[string]string) Ren

func NewVideo

func NewVideo(dict map[string]string) Ren

type Text

type Text string

func NewText

func NewText(str string) Text

func (Text) ToString

func (str Text) ToString() string

type Uta

type Uta struct {
	Rens []Ren
}

func (*Uta) ToString

func (uta *Uta) ToString() string

type Video

type Video struct {
	EntityID string
}

func (*Video) ToString

func (v *Video) ToString() string

Jump to

Keyboard shortcuts

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