Documentation ¶
Index ¶
- func DumpJSON(r interface{}) string
- func IsListeningSocket(socket string) (bool, error)
- func ParseEnabled(value string) (bool, error)
- func SortUint64s(a []uint64)
- func UncompressTbz2(archive string, dir string) error
- func WaitForServer(socket string, timeout time.Duration, opts ...interface{}) error
- type Uint64Slice
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DumpJSON ¶
func DumpJSON(r interface{}) string
DumpJSON dumps a json-compatible struct in human-readable form
func IsListeningSocket ¶ added in v0.7.0
IsListeningSocket returns true if connections are accepted on the socket.
func ParseEnabled ¶
ParseEnabled returns whether the given string represents an 'enabled' state.
func SortUint64s ¶
func SortUint64s(a []uint64)
SortUint64s sorts a slice of uint64 in increasing order.
func UncompressTbz2 ¶ added in v0.5.0
Types ¶
type Uint64Slice ¶
type Uint64Slice []uint64
Uint64Slice implmenents sort.Interface for a slice of uint64.
func (Uint64Slice) Less ¶
func (s Uint64Slice) Less(i, j int) bool
Less returns true if element at 'i' is less than the element at 'j'
Click to show internal directories.
Click to hide internal directories.