base32

package
v0.0.0-...-c5bcced Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

The encoding/base32 package encodes and decodes base32 data.

var lib = require('encoding/base32');
var enc = lib.encode("This is some text");
var dec = lib.decode(enc);
console.log(enc, dec);

It is also possible to decode base32 data directly from a reader.

var lib = require('encoding/base32');
var dec = lib.decoder(context.req.body);
var out = dec.decode();
console.log(out);

It is also possible to encode base32 data directly to a writer.

var lib = require('encoding/base32');
var enc = lib.encoder(context.res.body);
enc.encode("This is some text");

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(orb *orbit.Orbit) interface{}

Types

type Decoder

type Decoder struct {
	// contains filtered or unexported fields
}

func NewDecoder

func NewDecoder(orb *orbit.Orbit, rdr io.Reader) *Decoder

func (*Decoder) Decode

func (this *Decoder) Decode() (dec string)

type Encoder

type Encoder struct {
	// contains filtered or unexported fields
}

func NewEncoder

func NewEncoder(orb *orbit.Orbit, wtr io.WriteCloser) *Encoder

func (*Encoder) Encode

func (this *Encoder) Encode(dec string)

type Module

type Module struct {
	// contains filtered or unexported fields
}

func (*Module) Decode

func (this *Module) Decode(enc interface{}) (dec string)

func (*Module) Decoder

func (this *Module) Decoder(r io.Reader) *Decoder

func (*Module) Encode

func (this *Module) Encode(dec string) (enc string)

func (*Module) Encoder

func (this *Module) Encoder(w io.Writer) *Encoder

Jump to

Keyboard shortcuts

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