base60

base60: 天干地支编码: 乙丑癸巳甲寅己亥丁卯甲申丁未甲午己巳

BSD-3-CLAUSE License

Stars
35
Committers
1

base60天干地支编码

Install

  1. go get github.com/chai2010/base60
  2. 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!