util

package
v0.0.0-...-1d1d6d3 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2018 License: Apache-2.0 Imports: 6 Imported by: 4

README

util

util is an internal package of utilities, used by the other packages.

Documentation

Index

Constants

View Source
const (
	// UnknownFunc is a string representing an unknown function.
	UnknownFunc = "<unknown function>"
)

Variables

This section is empty.

Functions

func AmqpUriBuilder

func AmqpUriBuilder(username, password, host, vhost string, port int, tls bool) string

func EnsureID

func EnsureID(v interface{}) string

EnsureID checks if v contains a field named "ID" of string type, and (if empty) sets its contents to a new ID. It does nothing otherwise, so it can be safely used on every type.

func FuncName

func FuncName() string

func GenerateID

func GenerateID() string

Types

This section is empty.

Jump to

Keyboard shortcuts

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