Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stoewer/go-week
A Go package to work with ISO 8601 week dates
https://github.com/stoewer/go-week
date go golang iso8601 time week
Last synced: 11 days ago
JSON representation
A Go package to work with ISO 8601 week dates
- Host: GitHub
- URL: https://github.com/stoewer/go-week
- Owner: stoewer
- License: mit
- Created: 2018-02-23T07:02:37.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-11-15T17:56:19.000Z (almost 3 years ago)
- Last Synced: 2024-07-31T20:50:58.322Z (3 months ago)
- Topics: date, go, golang, iso8601, time, week
- Language: Go
- Homepage:
- Size: 47.9 KB
- Stars: 9
- Watchers: 6
- Forks: 8
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
- awesome-go - go-week - An efficient package to work with ISO8601 week dates. (Date and Time / Search and Analytic Databases)
- awesome-go-extra - go-week - 02-23T07:02:37Z|2021-11-15T17:56:19Z| (Date and Time / Advanced Console UIs)
README
[![CircleCI](https://circleci.com/gh/stoewer/go-week/tree/master.svg?style=svg)](https://circleci.com/gh/stoewer/go-week/tree/master)
[![codecov](https://codecov.io/gh/stoewer/go-week/branch/master/graph/badge.svg)](https://codecov.io/gh/stoewer/go-week)
[![GoDoc](https://godoc.org/github.com/stoewer/go-week?status.svg)](https://godoc.org/github.com/stoewer/go-week)
---go-week
=======The package `go-week` provides a simple data type representing a week date as defined by [ISO 8601](https://en.wikipedia.org/wiki/ISO_week_date).
Versions and stability
----------------------This package can be considered stable and ready to use. All releases follow the rules of
[semantic versioning](http://semver.org).Although the master branch is supposed to remain stable, there is not guarantee that braking changes will not
be merged into master when major versions are released. Therefore the repository contains version tags in
order to support vendoring tools. The tag names follow common conventions and have the following format `v1.0.0`.
This package supports Go modules introduced with version 1.11.Dependencies
------------### Build dependencies
* `github.com/pkg/errors`
### Test dependencies
* `github.com/DATA-DOG/go-sqlmock`
* `github.com/lib/pq` (integration tests only)
* `github.com/stretchr/testify`Run unit and integration tests
------------------------------To run the code analysis and tests, use the following commands:
```
golangci-lint run -v --config .golangci.yml ./...# without integration tests
go test ./...# with integration tests (requires test db)
go test -tags=integration ./...
```License
-------This project is open source an published under the [MIT license](LICENSE).