package
module
Version:
v1.0.0
Opens a new window with list of versions in this module.
Published: Dec 9, 2022
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
jp-era-map
Example: Variables
package main
import (
"fmt"
era "github.com/abetomo/jp-era-map"
)
func main() {
// 1949
fmt.Printf("%d\n", era.JpEraMap["S24"])
// 2012
fmt.Printf("%d\n", era.JpEraMap["H24"])
}
Example: JpEra()
fmt.Println(JpEra("大正3年"))
fmt.Println(JpEra("R01"))
// Output:
// 1914
// 2019
Documentation
¶
fmt.Println(JpEra("大正3年"))
fmt.Println(JpEra("R01"))
Output:
1914
2019
Source Files
¶
Click to show internal directories.
Click to hide internal directories.