parser

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2026 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package parser contains code to parse events.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	// Project is the event funded $project.
	Project string

	// Activity is the event %activity.
	Activity string

	// Tags contains the events #tag list.
	Tags []string

	// Persons contains the events @person list.
	Persons []string

	// StartTime is the event start time.
	StartTime time.Time

	// Duration is the event duration.
	Duration time.Duration
}

Event is a weekly calendar entry.

func Parse

func Parse(inputs []calendarapi.Event) ([]Event, error)

Parse parses the fetched [*calendar.Event] returning Event entries.

Jump to

Keyboard shortcuts

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