common

package
v6.7.2 Latest Latest
Warning

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

Go to latest
Published: May 2, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package common contains helper functions to be used around

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetOrCreateEventID

func GetOrCreateEventID(ctx context.Context) (string, context.Context)

GetOrCreateEventID returns eid and context with eid in context metadata

func IPaddress

func IPaddress() string

IPaddress returns first IP address TODO filter by network name...

func RandID

func RandID(prefix string, n int) string

RandID returns a random string with n length source http://stackoverflow.com/questions/22892120/how-to-generate-a-random-string-of-a-fixed-length-in-golang

func SafeName

func SafeName(name, sufix string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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