icutl

package
v0.0.0-...-d83f28c Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2020 License: BSD-3-Clause Imports: 9 Imported by: 4

Documentation

Overview

+build go1.5

Index

Constants

This section is empty.

Variables

View Source
var DebugLog *log.Logger = nil

Functions

func B64DecodeData

func B64DecodeData(in []byte) (out []byte, err error)

func B64EncodeData

func B64EncodeData(in []byte) (out []byte)

func CompressData

func CompressData(in []byte) (out []byte, err error)

func CompressData(in []byte) (data *bytes.Buffer, err error) {

func DecompressData

func DecompressData(in []byte) (out []byte, err error)

func GetRandomBytes

func GetRandomBytes(size int) (out []byte, err error)

XXX should len be uint32 or uint64 instead?

func HashSHA3Data

func HashSHA3Data(input []byte) (out []byte, err error)

func InitDebugLog

func InitDebugLog(out io.Writer)

Types

type AcError

type AcError struct {
	Value int    // the error code.
	Msg   string // the associated message
	Err   error  // called layer error
}

protoError is the custom AC error type exporting the error code ad well as string and cascaded error message

func (*AcError) Error

func (ae *AcError) Error() string

Jump to

Keyboard shortcuts

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