base60
base60 copied to clipboard
base60: 天干地支编码: 乙丑癸巳甲寅己亥丁卯甲申丁未甲午己巳
- KusonStack一站式可编程配置技术栈(Go): https://github.com/KusionStack/kusion
- KCL 配置编程语言(Rust): https://github.com/KusionStack/KCLVM
- 凹语言(凹读音“Wa”)(The Wa Programming Language): https://github.com/wa-lang/wa
base60天干地支编码
- godoc: https://godoc.org/github.com/chai2010/base60
Install
- go get github.com/chai2010/base60
- go run hello.go
Example
package main
import (
"fmt"
"github.com/chai2010/base60"
)
func main() {
s0 := base60.Encode([]byte("你好"))
fmt.Println(s0)
s1 := base60.Decode("乙丑癸巳甲寅己亥丁卯甲申丁未甲午己巳")
fmt.Println(string(s1))
// Output:
// 乙丑癸巳甲寅己亥丁卯甲申丁未甲午己巳
// 你好
}
BUGS
Report bugs to [email protected].
Thanks!