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 ¶
Types ¶
type Encoder ¶
type Encoder struct {
// contains filtered or unexported fields
}
func NewEncoder ¶
func NewEncoder(orb *orbit.Orbit, wtr io.WriteCloser) *Encoder
Click to show internal directories.
Click to hide internal directories.