yauhen-l / openhours Goto Github PK
View Code? Open in Web Editor NEWgolang implementation of opening hours
License: Apache License 2.0
golang implementation of opening hours
License: Apache License 2.0
Week number is always a two digit number in range 01-53, in the format "week we" (e.g., > week 25 Mo 08:30-20:00
)
I'd like to suggest that you add "opening-hours" as a tag to the project so that you can be listed here: https://github.com/topics/opening-hours?l=go&
Key word off
to exclude time:
Apr 10-15 off
Mo 14:00-15:00 off
Looking to implement this. Any pointers @yauhen-l ?
Working on bringing PrettifyValue to this repo. Encountered issue with compileSuccess
when trying to use semicolons
func TestPrettifyValue(t *testing.T) {
assert := assert.New(t)
// multi-day merges into same string
{
oh := compileSuccess("Mo 10:00-12:00; Tu 10:00-12:00", assert)
result := oh.PrettifyValue()
assert.Equal(result, "Mo-Tu 10:00-12:00")
}
}
--- FAIL: TestPrettifyValue (0.00s)
Error Trace: match_test.go:28
match_test.go:189
Error: Should be empty, but was [0:15 syntax
error]
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.