1. Mutual conversion between solar calendar and lunar calendar (supported from 1900 to 2049)
Quick start
Create SolarLunar. Go and lunar calendar conversion
package main
import (
"github.com/nosixtools/solarlunar"
"fmt"
)
func main() {
solarDate := "1990-05-06"
fmt.Println(solarlunar.SolarToChineseLuanr(solarDate))
fmt.Println(solarlunar.SolarToSimpleLuanr(solarDate))
lunarDate := "1990-04-12"
fmt.Println(solarlunar.LunarToSolar(lunarDate, false))
}
Copy the code