util

package
v0.0.0-...-159fe5e Latest Latest
Warning

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

Go to latest
Published: May 7, 2019 License: AGPL-3.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 AlphabeticTerm

type AlphabeticTerm struct {
	Title string
	Code  string
	Manif string
	Src   string

	Attrs []Attr
}

Alphabetic Index

func (*AlphabeticTerm) DecodeMsg

func (z *AlphabeticTerm) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (*AlphabeticTerm) EncodeMsg

func (z *AlphabeticTerm) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (*AlphabeticTerm) MarshalMsg

func (z *AlphabeticTerm) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (*AlphabeticTerm) Msgsize

func (z *AlphabeticTerm) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*AlphabeticTerm) UnmarshalMsg

func (z *AlphabeticTerm) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

type Attr

type Attr struct {
	Attr  string
	Value string
}

func (*Attr) DecodeMsg

func (z *Attr) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (Attr) EncodeMsg

func (z Attr) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (Attr) MarshalMsg

func (z Attr) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (Attr) Msgsize

func (z Attr) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*Attr) UnmarshalMsg

func (z *Attr) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

type Diag

type Diag struct {
	Code string
	Desc string

	Notes []Note
}

Tabular Index

func (*Diag) DecodeMsg

func (z *Diag) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (*Diag) EncodeMsg

func (z *Diag) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (*Diag) MarshalMsg

func (z *Diag) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (*Diag) Msgsize

func (z *Diag) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*Diag) UnmarshalMsg

func (z *Diag) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

type DocIDMap

type DocIDMap map[string]bool

FTS Types

func (*DocIDMap) DecodeMsg

func (z *DocIDMap) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (DocIDMap) EncodeMsg

func (z DocIDMap) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (DocIDMap) MarshalMsg

func (z DocIDMap) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (DocIDMap) Msgsize

func (z DocIDMap) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*DocIDMap) UnmarshalMsg

func (z *DocIDMap) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

type Note

type Note struct {
	Kind  string
	Notes []string
}

func (*Note) DecodeMsg

func (z *Note) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (*Note) EncodeMsg

func (z *Note) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (*Note) MarshalMsg

func (z *Note) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (*Note) Msgsize

func (z *Note) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*Note) UnmarshalMsg

func (z *Note) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

type Title

type Title struct {
	Title string `xml:",chardata"`
	Nemod string `xml:"nemod"`
}

Utility Types

type Token

type Token struct {
	Src        string
	Forms      []string
	IsPrefix   bool
	IsNegative bool
}

func NewToken

func NewToken(src string) (t Token)

func Tokenize

func Tokenize(s string) (tokens []Token)

func (*Token) AddForm

func (t *Token) AddForm(formSet map[string]bool, form string)

Jump to

Keyboard shortcuts

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