openinghours

package
v0.0.0-...-253b529 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseOpeningHours

func ParseOpeningHours(openingHoursString string) (OpeningHours, ExtraOpeningHours, error)

Types

type ExtraOpening

type ExtraOpening struct {
	Start   time.Time   `bson:"start"`
	End     time.Time   `bson:"end"`
	Opening *OpeningDay `bson:"opening"`
}

type ExtraOpeningHours

type ExtraOpeningHours []ExtraOpening

type OpeningDay

type OpeningDay struct {
	Opening string `bson:"opening"`
	Closing string `bson:"closing"`
}

type OpeningHours

type OpeningHours map[Weekday]*OpeningDay

type Weekday

type Weekday string
const (
	Monday    Weekday = "Mon"
	Tuesday   Weekday = "Tue"
	Wednesday Weekday = "Wen"
	Thursday  Weekday = "Thu"
	Friday    Weekday = "Fri"
	Saturday  Weekday = "Sat"
	Sunday    Weekday = "Sun"
)

Jump to

Keyboard shortcuts

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