utils

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEnv

func GetEnv(key, defaultValue string) string

GetEnv gets env or default

func Int64

func Int64(v int64) *int64

Int64 returns a pointer to the int64 value passed in.

func String

func String(v string) *string

String returns a pointer to the string value passed in.

func StringContains

func StringContains(s []string, e string) bool

StringContains checks if string contains in slice

func WaitForShutdown

func WaitForShutdown(srv *http.Server)

WaitForShutdown wait for system process kill signals

Types

This section is empty.

Jump to

Keyboard shortcuts

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