span

package
v0.0.0-...-022116b Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Em

type Em struct {
	Span
}

func (*Em) Decode

func (s *Em) Decode(enc interface{}) error

func (*Em) HtmlBeginTag

func (e *Em) HtmlBeginTag() string

func (*Em) HtmlEndTag

func (e *Em) HtmlEndTag() string
func (e *Em) ResolveLinks(_ link.Resolver)
type Hyperlink struct {
	Span
	Link link.Link
}

func (*Hyperlink) Decode

func (s *Hyperlink) Decode(enc interface{}) error

func (*Hyperlink) HtmlBeginTag

func (h *Hyperlink) HtmlBeginTag() string

func (*Hyperlink) HtmlEndTag

func (h *Hyperlink) HtmlEndTag() string
func (h *Hyperlink) ResolveLinks(r link.Resolver)

type Span

type Span struct {
	Start int `json:"start"`
	End   int `json:"end"`
}

func (*Span) GetEnd

func (s *Span) GetEnd() int

func (*Span) GetStart

func (s *Span) GetStart() int

type SpanInterface

type SpanInterface interface {
	GetStart() int
	GetEnd() int
	HtmlBeginTag() string
	HtmlEndTag() string
	Decode(interface{}) error
	ResolveLinks(link.Resolver)
}

type Strong

type Strong struct {
	Span
}

func (*Strong) Decode

func (s *Strong) Decode(enc interface{}) error

func (*Strong) HtmlBeginTag

func (s *Strong) HtmlBeginTag() string

func (*Strong) HtmlEndTag

func (s *Strong) HtmlEndTag() string
func (s *Strong) ResolveLinks(_ link.Resolver)

Jump to

Keyboard shortcuts

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