util

package
v0.0.0-...-c377703 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2017 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package util provides various helper routines.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Pformat

func Pformat(value interface{}) string

Pformat returns a pretty format output of any value that can be marshalled to JSON.

func RandString

func RandString(n int) string

RandString generates a random string of the desired length.

The string is DNS-1035 label compliant; i.e. its only alphanumeric lowercase. From: https://stackoverflow.com/questions/22892120/how-to-generate-a-random-string-of-a-fixed-length-in-golang

Types

This section is empty.

Directories

Path Synopsis
election
Package election implements leader election of a set of endpoints.
Package election implements leader election of a set of endpoints.
fake
fake provides a fake implementation of MxJobClient suitable for use in testing.
fake provides a fake implementation of MxJobClient suitable for use in testing.

Jump to

Keyboard shortcuts

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