Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lzjluzijie/base36
Package base36 implements base36 encoding
https://github.com/lzjluzijie/base36
Last synced: 23 days ago
JSON representation
Package base36 implements base36 encoding
- Host: GitHub
- URL: https://github.com/lzjluzijie/base36
- Owner: lzjluzijie
- License: mit
- Created: 2017-09-09T06:55:30.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-10-02T05:57:28.000Z (over 7 years ago)
- Last Synced: 2024-11-15T12:05:54.599Z (3 months ago)
- Language: Go
- Homepage:
- Size: 3.91 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# base36
[![GoDoc](http://img.shields.io/badge/go-documentation-blue.svg?style=flat-square)](https://godoc.org/github.com/lzjluzijie/base36)
[![Goreportcard](https://goreportcard.com/badge/github.com/lzjluzijie/base36)](https://goreportcard.com/report/github.com/lzjluzijie/base36)Package base36 implements base36 encoding
# Installation
`go get github.com/lzjluzijie/base36`# Examples
Encode
```go
data := []byte("Hello World!")
encoded := base36.Encode(data)fmt.Println(string(encoded))
```Decode
```go
encoded := "2678lx5gvmsv1dro9b5"
decoded, err := base36.Decode(encoded)if err != nil{
fmt.Println(err.Error())
return
}fmt.Println(string(decoded))
```