parser

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2020 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Invalid failure.StringCode = "Invalid"
)

Variables

This section is empty.

Functions

func Parse

func Parse(r io.Reader) (*ical.Calendar, error)

func ParseFile

func ParseFile(path string) (*ical.Calendar, error)

Types

type InvalidPropertyError

type InvalidPropertyError property.Name

type InvalidValueLengthError

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

func NewInvalidValueLengthError

func NewInvalidValueLengthError(r, a int) InvalidValueLengthError

func (InvalidValueLengthError) Error

func (ivle InvalidValueLengthError) Error() string

type NoEndError

type NoEndError component.Type

func (NoEndError) Error

func (e NoEndError) Error() string

type ParseError

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

func NewParseError

func NewParseError(cname component.Type, pname property.Name, e error) ParseError

func (ParseError) Error

func (e ParseError) Error() string

type Parser

type Parser struct {
	Lines        []*contentline.ContentLine
	CurrentIndex int
	// contains filtered or unexported fields
}

func NewParser

func NewParser(cls []*contentline.ContentLine) *Parser

func (*Parser) Parse

func (p *Parser) Parse() (*ical.Calendar, error)

type UnknownComponentTypeError

type UnknownComponentTypeError component.Type

func (UnknownComponentTypeError) Error

Jump to

Keyboard shortcuts

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