services

package
v0.0.0-...-1e403be Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2024 License: EUPL-1.2 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AnyContain

func AnyContain(strs []string, sub string, ignoreCase bool) bool

func AnyContainAny

func AnyContainAny(strs []string, subs []string, ignoreCase bool) bool

func Contains

func Contains(str, sub string, ignoreCase bool) bool

func ContainsAny

func ContainsAny(str string, subs []string, ignoreCase bool) bool

func GetCredentials

func GetCredentials() (username, password string, err error)

func GetEvents

func GetEvents(start, end time.Time, teacher string) (events map[string][]Event, err error)

func ParseDateRange

func ParseDateRange(start, end, days string) (startTime, endTime time.Time, err error)

func RenderComponent

func RenderComponent(component templ.Component) string

Types

type Cache

type Cache struct {
	Name  string
	Start time.Time
	End   time.Time
}

func (*Cache) IsValid

func (cache *Cache) IsValid() bool

func (*Cache) Load

func (cache *Cache) Load() (data []byte, err error)

func (*Cache) Write

func (cache *Cache) Write(text []byte) (err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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