converters

package
v2.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package converters includes all converters from foreign formats to iCal

Icarus parses the incoming file data and produces an iCal for output

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseConverter

type BaseConverter interface {
	// Convert converts the incoming file data and produces a calendar object
	Convert(input io.Reader, output *ical.Calendar) error
}

The BaseConverter is the interface for all Icarus converters

type CSVConverter

type CSVConverter struct {
	Separator       string
	TimestampFormat string
	FieldMap        map[string]string
	HasHeaders      bool
	Headers         []string
	Location        *time.Location
	SkipRows        int
}

CSVConverter converts an incoming CSV formatted file into a Calendar object

func (*CSVConverter) Convert

func (c *CSVConverter) Convert(input io.Reader, output *ical.Calendar) error

Jump to

Keyboard shortcuts

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