Base69 is a binary-to-text encoding scheme. This is port of pshihn/base69. Why Base69 when Base64 is adequate? Because it's NICE!
package main
import (
"fmt"
"github.com/eiri/base69/encoding/base69"
)
func main() {
msg := "Hello, 世界"
encoded := base69.Encode([]byte(msg))
fmt.Println(string(encoded))
decoded := base69.Decode(encoded)
fmt.Println(string(decoded))
}
Output:
kAZAtABBeB8ATBgAtBuASApB8ARBYA1=
Hello, 世界
go test -v ./...