holidayjp

package module
v0.0.0-...-30fb565 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2019 License: MIT Imports: 4 Imported by: 1

README

go-holidayjp

MIT License Go Documentation

go-holidayjp is a Go package for detecting holiday in Japan. This is Go port of komagata/holiday_jp.

The documentation is on GoDoc.

Install

Use go get to install this package:

$ go get github.com/tcnksm/go-holidayjp

Contribution

  1. Fork (https://github.com/tcnksm/go-holidayjp/fork)
  2. Create a feature branch
  3. Commit your changes
  4. Rebase your local changes against the master branch
  5. Run test suite with the go test ./... command and confirm that it passes
  6. Run gofmt -s
  7. Create new Pull Request

Author

Taichi Nakashima

Documentation

Overview

go-holidayjp is a package for detecting holiday in Japan.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Holiday

func Holiday(target time.Time) (string, error)

Holiday returns Holiday name of the given time. If it's not holiday, returns error(ErrNotHoliday).

func IsHoliday

func IsHoliday(target time.Time) bool

IsHoliday reports whether the time is holiday.

Types

This section is empty.

Directories

Path Synopsis
Code generated by go-bindata.
Code generated by go-bindata.
cmd

Jump to

Keyboard shortcuts

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