utils

package module
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2021 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnvOrDefault added in v0.2.0

func EnvOrDefault(name, def string) string

func EnvOrDefaultBool added in v0.2.1

func EnvOrDefaultBool(name string, def bool, err *error) bool

func EnvOrDefaultInt32 added in v0.2.1

func EnvOrDefaultInt32(name string, def int32, err *error) int32

func EnvOrDefaultInt64 added in v0.2.1

func EnvOrDefaultInt64(name string, def int64, err *error) int64

Types

type HttpError

type HttpError struct {
	Code    int
	Err     error
	Message string
}

func (*HttpError) Error

func (err *HttpError) Error() string

func (*HttpError) ErrorAndStack

func (err *HttpError) ErrorAndStack() (string, string)

func (*HttpError) StackTrace

func (err *HttpError) StackTrace() string

Jump to

Keyboard shortcuts

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