util

package
v0.0.0-...-86e4b03 Latest Latest
Warning

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

Go to latest
Published: May 15, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HostHostname

func HostHostname(defaultValue string) string

HostHostname returns hostname from file defined in constant hostHostnamePath or the defaultValue in case the file does not exits.

func PanicOnError

func PanicOnError(err error)

PanicOnError panics if the error is not nil.

func RandString

func RandString(l int, src string) (string, error)

RandString returns random string generated from symbols specified by src

Types

This section is empty.

Jump to

Keyboard shortcuts

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