jperamap

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2022 License: MIT Imports: 1 Imported by: 0

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

Index

Examples

Constants

This section is empty.

Variables

View Source
var JpEraMap = map[string]int{}/* 205 elements not displayed */

Functions

func JpEra

func JpEra(wareki string) int
Example
fmt.Println(JpEra("大正3年"))
fmt.Println(JpEra("R01"))
Output:

1914
2019

Types

This section is empty.

Jump to

Keyboard shortcuts

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