1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package main

import (
"fmt"
"github.com/nosixtools/solarlunar"
)

func main() {
fmt.Scanln(&solarDate)
fmt.Println(solarlunar.SolarToChineseLuanr(solarDate))
fmt.Println(solarlunar.SolarToSimpleLuanr(solarDate))

lunarDate := "1990-04-12"
fmt.Println(solarlunar.LunarToSolar(lunarDate, false))
}