Skip to content

mtraver/base91

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

base91

Go Report Card GoDoc

A Go implementation of base91 encoding with an interface as close as possible to that of the standard library's encoding/base64 (https://golang.org/pkg/encoding/base64).

The encoding/base64 Encoding type and this package's Encoding type both satisfy this interface:

type BaseNEncoding interface {
  Decode(dst, src []byte) (int, error)
  DecodeString(s string) ([]byte, error)
  DecodedLen(n int) int
  
  // The signature of Encode is different in this package and
  // encoding/base64: this package returns the number of bytes
  // written because the encoded length cannot be known from just
  // the number of bytes to encode, whereas it can with base64.
  // Encode(dst, src []byte)
  
  EncodeToString(src []byte) string
  EncodedLen(n int) int
}

About

A Go implementation of base91 encoding with an interface as close as possible to that of encoding/base64

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages