base65536

package module
v0.0.0-...-98730a0 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2016 License: MIT Imports: 1 Imported by: 0

README

go-base65536 GoDoc

Go library for encoding data into base65536.

Examples

Marshaling

package main

import (
	"fmt"
	"github.com/Nightbug/go-base65536"
)

func main() {
	fmt.Println(base65536.Marshal([]byte("hello world")))
}

Unmarshaling

package main

import (
	"fmt"
	"github.com/Nightbug/go-base65536"
)

func main() {
	var out []byte
	err := base65536.Unmarshal([]byte("驨ꍬ啯𒁷ꍲᕤ"), &out)
	if err != nil {
		panic(err)
	}
}

License

MIT

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Marshal

func Marshal(data []byte) string

Marshal returns the base65536 encoded version of data.

func Unmarshal

func Unmarshal(data []byte, out *[]byte) error

Unmarshal appends to out the bytes decoded from data. It can return an error, in case the decoding failed.

Types

This section is empty.

Jump to

Keyboard shortcuts

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