• Stars
    star
    27
  • Rank 905,713 (Top 18 %)
  • Language
    Go
  • License
    MIT License
  • Created almost 9 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

ISO 8601 compatible library for working with week entities for Go

Goweek

Build Status Goreport

Simple ISO 8601-compatible library for working with week entities for Go programming language. Rewrite of old Ruby gem

Usage:

// importing:
import "github.com/grsmv/goweek"

// initializing goweek.Week struct:
//                          year 
//                          |     week number (starting from 1)
//                          |     |
week, err := goweek.NewWeek(2015, 46)

// retrieving slice with days (`time.Time` instances) for a given week:
week.Days()

// retrieving `goweek.Week` instance for a next week:
nextWeek, err := week.Next()

// retrieving `goweek.Week` instance for a previous week:
previousWeek, err := week.Previous()

License:

Copyright (c) 2015 Serhii Herasymov

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

More Repositories

1

haskell-bookmarks

List of Haskell-related links. Inspired by goo.gl/FPLDZp
80
star
2

inflect

Clone of ActiveRecord::Inflect. Originally created by Chris Farmiloe. Updated to use with Go 1.
Go
30
star
3

softserve-go-bootcamp-materials

Training materials, slides and code for SoftServe's Go Bootcamp (Fall 2016)
Go
19
star
4

angular-punch-card

GitHub-inspired punch card implementation as an Angular directive
CSS
8
star
5

clio

Little and fast web-development library for Golang
Go
7
star
6

day

Gem for date recognition and parsing in natural language phrases.
Ruby
4
star
7

bauhaus.css

Minimalistic CSS framework
CSS
4
star
8

metaprogramming-in-go

Slides for short talk
Go
2
star
9

go-plugin-example

Go
2
star
10

sllar-server

Server side of meta package manager
Haskell
2
star
11

date-range-format

Formatting date ranges in Go with i18n support
Go
2
star
12

week

Simple gem to work with weeks as arrays of day numbers.
Ruby
2
star
13

gorilla-example

Gorilla mux example + coverage measurements
Go
2
star
14

cv

Curriculum vitae
TeX
1
star
15

sequencel.vim

Vim plugin for SequenceL programming language
Vim Script
1
star
16

tincan-course-example

CSS
1
star
17

palett

Gem for terminal output coloring
Ruby
1
star
18

gaia

Simple translator of Lisp-flowered config files to Go
Go
1
star
19

grsmv.github.com

No place like 127.0.0.1
HTML
1
star
20

continuum-small-talks

HTML
1
star
21

canvas-api

Ruby
1
star
22

git-example

C
1
star
23

peg-powershell-grammar

PEG grammar for Powershell
Go
1
star
24

gowoopra

Golang SDK for Woopra API
Go
1
star
25

vimfiles

Vim Script
1
star
26

riotjs-appointement-time-selector

JavaScript
1
star
27

sllar-client

Client side of meta package manager
Haskell
1
star