util

package
v0.0.0-...-263c4a3 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2017 License: LGPL-3.0 Imports: 3 Imported by: 2

Documentation

Overview

Package util provides some utility functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewToken

func NewToken() string

NewToken retuns a random 32 byte string.

func Random

func Random() []byte

Random returns a 32 random bytes.

func URLDecode

func URLDecode(value []byte) ([]byte, error)

URLDecode decodes a base64-encoded byte slice.

func URLDecodeString

func URLDecodeString(value string) (string, error)

URLDecode decodes a base64-encoded string.

func URLEncode

func URLEncode(value []byte) []byte

URLEncode encodes a bite slice with base64.

func URLEncodeString

func URLEncodeString(value string) string

URLEncodeString encodes a string with base64.

Types

This section is empty.

Jump to

Keyboard shortcuts

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