utils

package
Version: v0.0.0-...-33acbe3 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLogger

func GetLogger() (*zap.SugaredLogger, error)

GetLogger - simple func to return dev or prod logger, singleton

func PanicOnErr

func PanicOnErr(err error)

PanicOnErr - helper. Used for panic if err != nil

func ReadFileByEnv

func ReadFileByEnv(envName string) []byte

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL