# Packages
TODO: Move this package to a more appropriate home.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Package mocks is a generated GoMock package.
# Functions
BytesToBytes32 copies b to a Bytes32.
BytesToBytes64 copies b to a Bytes64.
CheckEvtArgs checks whether the arguments of an event conforms to the expected standard where only 2 arguments are expected; Argument 0: WaitForResult Argument 1: Error Panics if standard is not met.
CloneMap copies src map to a new map.
CopyMap copies src map to dst.
DecodeMap decodes a map to a struct with weak conversion.
DecodeMapStrict decodes a map to a struct with strict type check.
DecodeNumber deserialize a number from BigEndian.
DecodeWithJSON is like DecodeMap but it marshals src and Unmarshal to dest using encode/json.
EncodeNonce converts the given integer to a block nonce.
EncodeNumber serializes a number to BigEndian.
FatalOnError logs a message of Fatal level if err is not nil.
FromHex decodes hex value to bytes.
FromHexBytes decodes hex source to bytes.
GetPtrAddr takes a pointer and returns the address.
HexToBytes32 creates an hex value to Bytes32.
HexToInt64 attempts to convert an hex string to Int64.
HexToStr decodes an hex string to string.
Int64ToHex converts an Int64 value to hex string.
IsBoolChanClosed checks whether a boolean channel is closed.
IsEmojiValid checks whether a given emoji is valid.
IsFileOk checks if a path exists and it is a file.
IsFuncChanClosed checks whether a function channel is closed.
IsGitInstalled checks whether git executable exist in the given path.
IsMapOrStruct checks whether o is a map or a struct (pointer to struct).
IsPathOk checks if a path exist and whether there are no permission errors.
IsString checks whether the interface is a string.
IsStructChanClosed checks whether a struct channel is closed.
IsZeroString returns true if str is empty or equal "0".
MayDecodeNumber is like DecodeNumber but returns an error instead of panicking.
MustFromHex is like FromHex except it panics if an error occurs.
MustToJSON converts the give obj to valid JSON.
NewCommand creates a Cmd instance.
NewWrappedCmd creates an instance of WrappedCmd.
NonZeroOrDefIn64 returns v if non-zero, otherwise it returns def.
NonZeroOrDefString returns v if non-zero, otherwise it returns def.
Notify displays a desktop notification.
ParseFrontMatterContent parses a reader containing front matter + content.
ParseExtArgs parses an extension arguments map.
ParseGitVersion extracts semver version from `git version` output.
ParseLogLevel parse value from --loglevel flag.
ParseUint is like strconv.ParseUint but returns util.UIInt64.
ParseVerbs parses a template containing verbs prefixed with %.
PtrStrToFloat cast string pointer to float64.
PtrStrToFloatE is like PtrStrToFloat but returns error.
PtrStrToUInt64 cast string pointer to uint64.
RandBytes gets random string of fixed length.
RandString is like RandBytes but returns string.
ReadFromEditor reads input from the specified editor program.
RemoveFlag takes a slice of arguments and remove specific flags.
RemoveFromStringSlice removes str from the given string slice.
RESTApiErrorMsg returns a message suitable for reporting REST API errors.
SplitNamespaceDomain splits a full namespace address into namespace and domain.
StrToBytes32 converts a string to a Bytes32.
StrToDec converts a numeric string to decimal.
StrToHex converts a string to hex.
StrToHexBytes converts a string to a HexBytes.
StructSliceToMap converts struct slice s to a map slice.
ToBytes returns msgpack encoded representation of s.
ToByteSlice converts a uint slice to byte slice.
ToHex encodes value to hex with a '0x' prefix only if noPrefix is unset.
ToHexBytes encodes source to hex bytes.
ToJSONMap converts s to json and then back to map.
ToMap converts a struct to a map.
ToObject decodes bytes produced by ToBytes to the given dest object.
ToStringMapInter converts a map to map[string]interface{}.
VMSet sets a value in the vm context only if it has not been set before.
WriteJSON encodes respObj to json and writes it to w.
XorBytes xor a and b.
# Variables
Big0 represents a zero value big.Int.
Mapping from character to concrete escape code.
EmptyBytes32 is an empty Bytes32.
EmptyBytes64 is an empty Bytes64.
# Structs
CodecUtil provides convenient methods to serialize and deserialize objects.
WrappedCmd implements Cmd which exec.Cmd conforms to.
# Type aliases
BlockNonce represents a 64-bit.
Bytes represents a byte slice.
Bytes32 represents a 32-bytes value.
Bytes64 represents a 32-bytes value.
CommandCreator describes a function for creating a util.Cmd instance.
EditorReaderFunc describes a function that reads input from an editor program.
HexBytes represents a slice of bytes.
Int64 wraps int64.
No description provided by the author
String represents a custom string.
TMAddress represents a tendermint address.
UInt64 wraps uint64.