Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shinriyo/jcalender
jcalenderをGo言語用に移植
https://github.com/shinriyo/jcalender
Last synced: 19 days ago
JSON representation
jcalenderをGo言語用に移植
- Host: GitHub
- URL: https://github.com/shinriyo/jcalender
- Owner: shinriyo
- Created: 2014-12-23T07:20:41.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2014-12-26T02:56:31.000Z (almost 10 years ago)
- Last Synced: 2024-04-13T16:17:13.911Z (7 months ago)
- Language: Go
- Homepage: http://www.h3.dion.ne.jp/~sakatsu/holiday_logic5.htm
- Size: 156 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
jCalender
====Overview
## Description
日本のカレンダー
http://www.h3.dion.ne.jp/~sakatsu/holiday_logic5.htm#Python
これをベースにした。## Demo
N/A
## VS.
N/A
## Requirement
go version go1.3.3 or higher
## Usage
### テスト方法
```
go run test/test.go
```### インポート方法
```
import (
jc "github.com/shinriyo/jcalender"
)
```jcalenderは長いので省略したjcにエイリアスしている。
### 使い方
```
package mainimport (
jc "github.com/shinriyo/jcalender"
"fmt"
"time"
)func main() {
params := jc.Params{Year: 1984, Month:1, Day:1, Date:time.Time{}}
name := jc.GetHolidayName(params)
// 元旦
fmt.Printf("Name: %#v\n", name)
}
```#### 結果
```
Name: "元日"
```### 注意
2016年以降は対応できないかもしれません。
## Install
```
go get github.com/shinriyo/jcalender
```## Contribution
sinriyo
## Licence
CopyRight(C) K.Tsunoda(AddinBox) 2001 All Rights Reserved.
(http://www.h3.dion.ne.jp/~sakatsu/index.htm)## Author
[shinriyo](https://github.com/shinriyo/)
[K.Tsunoda](http://www.h3.dion.ne.jp/~sakatsu/index.htm)