timerange

package
v0.0.0-...-fc9f681 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package timerange provides simple way to store time ranges - not working yet taken from https://gist.github.com/smagch/d2a55c60bbd76930c79f

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Day

type Day []jsonTime

Day represents open hours in one day Opening hours must comply with the following form:

["open", "close", ...]

type Opens

type Opens []jsonTime

type Range

type Range [2]jsonTime

Range contains two time, open and close

func (*Range) IsOpen

func (r *Range) IsOpen(t time.Time) bool

IsOpen checks if time t is in range

func (Range) String

func (r Range) String() string

type Week

type Week [7][]jsonTime

Jump to

Keyboard shortcuts

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