util

package
v0.0.0-...-a7e7b69 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2020 License: MPL-2.0 Imports: 7 Imported by: 11

Documentation

Index

Constants

View Source
const (
	ADDRESS_PREFIX     = "0x"
	TRANSACTION_PREFIX = "0x"
	PUB_KEY_PREFIX     = "Nx"
)

Variables

View Source
var Logger *mlog.Mlog // log commands submitted by users

Functions

func ArgsToString

func ArgsToString(args []string) string

func FindIndexOfValueInArray

func FindIndexOfValueInArray(arr []string, value string) int

Looks for a specific value in the array, and returns its location returns -1 if not found

func GetEIP55Address

func GetEIP55Address(address string) string

func HandleFurtherCommands

func HandleFurtherCommands(command string, suggestions []prompt.Suggest)

func SimpleSubcommandCompleter

func SimpleSubcommandCompleter(line []string, index int, suggestions []prompt.Suggest) []prompt.Suggest

func SplitInput

func SplitInput(input string, keepLastElement bool) []string

Types

This section is empty.

Jump to

Keyboard shortcuts

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