goutils

package module
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2021 License: MIT Imports: 9 Imported by: 1

README

go-utils

Various golang utilities used by my projects

Documentation

Index

Constants

This section is empty.

Variables

Functions

func Callername

func Callername() string

func Debuglevel

func Debuglevel() int

func Development

func Development() bool

func DisableProfiling

func DisableProfiling()

func EnableProfiling

func EnableProfiling()

func Funcname

func Funcname() string

func KubernetesPod

func KubernetesPod() bool

return trun if running under kubernetes

func Loglevel

func Loglevel() int

func PrintAsJSON

func PrintAsJSON(v interface{})

func Production

func Production() bool

func ProfilingEnabled

func ProfilingEnabled() bool

func ReadPassword

func ReadPassword(prompt string) ([]byte, error)

func ReadString

func ReadString(prompt string) ([]byte, error)

func SetDebuglevel

func SetDebuglevel(level int)

func SetLoglevel

func SetLoglevel(level int)

func SetProfiling

func SetProfiling(on bool)

func Setproduction

func Setproduction()

func Trace

func Trace()

Types

This section is empty.

Jump to

Keyboard shortcuts

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