helpers

package
v0.0.0-...-eef6c14 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2018 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Banner()

Banner outputs gizo banner in terminal

func Decode64

func Decode64(s string) ([]byte, error)

Decode64 used to decode base64

func Decrypt

func Decrypt(data []byte, passphrase string) ([]byte, error)

Decrypt returns decrypted data

func Deserialize

func Deserialize(b []byte, d interface{}) error

Deserialize unmarshals from json

func Encode64

func Encode64(b []byte) string

Encode64 used to encode serilized block to base64 for writing to *.blk file

func Encrypt

func Encrypt(data []byte, passphrase string) ([]byte, error)

Encrypt returns encrypted data

func FileExists

func FileExists(file string) bool

FileExists checks if file exists on the disk

func Logger

func Logger() *glg.Glg

Logger initializes logger

func Serialize

func Serialize(d interface{}) ([]byte, error)

Serialize marshals to json

Types

This section is empty.

Jump to

Keyboard shortcuts

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