calendar

package
v0.12.5 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OutputEventSimple

func OutputEventSimple(evs []koyomi.Event) string

Types

type Config

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

Config type is configurations for calendar package.

func NewConfig

func NewConfig(start, end string, holiday, moonPhase, solarTerm, eclipse, planet bool, tempDir *tempdir.TempDir, templateFile string) (*Config, error)

NewConfig function creates new Config instance.

func (*Config) GetEvents

func (cal *Config) GetEvents() ([]koyomi.Event, error)

GetEvents method returns astronomical events.

func (*Config) OutputEvent

func (cal *Config) OutputEvent(w io.Writer) error

Jump to

Keyboard shortcuts

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