Documentation ¶
Index ¶
- func Atoi(s string) (int, error)
- func DateFromWareki(s string) (tt time.Time, err error)
- func DiffChecksum(r []byte, target string) (cs string, result bool)
- func Do(c *http.Client, conf Conf) (result map[string]Wages, skip bool, checksum string, err error)
- func Sha256Sum(data []byte) string
- func Standardize(s string) string
- func StringInSlice(needle string, haystacks []string) bool
- func StripSpace(s string) string
- func YearFromGengo(g, y string) (year int, err error)
- type Conf
- type Func
- type Wages
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DateFromWareki ¶
DateFromWareki transforms 和暦 string to time.Time (西暦)
pattern1. 令和元年5月1日 -> 2019-05-01 pattern2. R1.05.01 -> 2019-05-01
func DiffChecksum ¶
DiffChecksum compares request body and a checksum string
func StringInSlice ¶
StringInSlice checks if a value exists in an slice
func YearFromGengo ¶
YearFromGengo transforms 元号 to year
Types ¶
Click to show internal directories.
Click to hide internal directories.