util

package
v0.0.0-...-2ec1701 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2014 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Debug bool

Debug is a global flag for debugging.

View Source
var ErrNotImplemented = fmt.Errorf("Error: not implemented yet.")

ErrNotImplemented signifies a function has not been implemented yet.

Functions

func DErr

func DErr(format string, a ...interface{})

DErr is a shorthand debug printing function to output to Stderr. Will only print if Debug is true.

func DOut

func DOut(format string, a ...interface{})

DOut is a shorthand debug printing function to output to Stdout. Will only print if Debug is true.

func Hash

func Hash(data []byte) (mh.Multihash, error)

Hash is the global IPFS hash function. uses multihash SHA2_256, 256 bits

func PErr

func PErr(format string, a ...interface{})

PErr is a shorthand printing function to output to Stderr.

func POut

func POut(format string, a ...interface{})

POut is a shorthand printing function to output to Stdout.

func TildeExpansion

func TildeExpansion(filename string) (string, error)

TildeExpansion expands a filename, which may begin with a tilde.

Types

type Key

type Key string

Key is a string representation of multihash for use with maps.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳