util

package
v0.0.0-...-fd3dc7f Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2018 License: GPL-3.0 Imports: 6 Imported by: 3

Documentation

Overview

Package util provides utility functions for doing common operations such as encoding base64

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AskPass

func AskPass(prompt string) ([]byte, error)

AskPass prints the prompt to the screen & then reads input

func DecodeB64

func DecodeB64(message string) ([]byte, error)

DecodeB64 decodes a base64 string into bytes

func DecodeJSON

func DecodeJSON(message string, object interface{}) error

DecodeJSON decodes a json string into the given interface

func EncodeB64

func EncodeB64(bytes []byte) string

EncodeB64 encodes the given bytes into a base64 string

func EncodeJSON

func EncodeJSON(object interface{}) (string, error)

EncodeJSON encodes an object into a json string

Types

This section is empty.

Directories

Path Synopsis
Package slices provides utilities for working with slices
Package slices provides utilities for working with slices

Jump to

Keyboard shortcuts

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