prog

package module
v0.0.0-...-0ca2c74 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2017 License: BSD-3-Clause Imports: 10 Imported by: 3

README

Dist-ribut-us Program Utilities

Package to help build dist.ribut.us programs (either services or applications).

GoDoc

Documentation

Overview

Package prog provides some helpers to dist.ribut.us programs

Index

Constants

View Source
const ErrBadArgs = errors.String("Bad command line args")

ErrBadArgs is returned if there are not enough args

Variables

This section is empty.

Functions

func ReadArgs

func ReadArgs() (*ipcrouter.Router, rnet.Port, *crypto.Symmetric, error)

ReadArgs expects to be invoked with an ipcPort, the pool port and the key that should be used to access the merkle tree.

func ReadStdin

func ReadStdin(prompt string) []string

ReadStdin and split it up into a slice of strings, splitting at either white space or quotes

func Root

func Root() string

Root location for dist.ribut.us data

func Split

func Split(str string) []string

Split a string by white space or by text surrounded by quotes. Any character preceded by a backspace will be rendered directly.

func UserHomeDir

func UserHomeDir() string

UserHomeDir get the home directory for most systems

Types

This section is empty.

Jump to

Keyboard shortcuts

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