base32

package module
v1.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 13, 2020 License: BSD-3-Clause Imports: 2 Imported by: 37

README

go-base32

base32 encoding using Manifold's chosen alphabet, with no padding.

Code of Conduct | Contribution Guidelines

GitHub release GoDoc Travis Go Report Card License

Usage

package main

import (
	"fmt"

	"github.com/manifoldco/go-base32"
)

func main() {
	sample := []byte{0xF, 0xEE, 0xD, 0xC, 0x0D}

	fmt.Println(base32.EncodeToString(sample))
}

Outputs:

1zq0u30d

Documentation

Overview

Package base32 implements unpadded base32 encoding, using our chosen alphabet.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeString

func DecodeString(raw string) ([]byte, error)

DecodeString decodes the given base32 encodeed bytes

func EncodeToString

func EncodeToString(in []byte) string

EncodeToString encodes the given byte slice in base32

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL