microhelpers

package module
v0.0.0-...-e8ea61a Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2018 License: MIT Imports: 8 Imported by: 0

README

microhelpers

A collection of helpers for golang microservice applications

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListenAndServe

func ListenAndServe(addresses []string, handler http.Handler, logger ...io.Writer) error

func ParseBool

func ParseBool(flags []string, envs []string, defaultValue bool, args []string) (bool, error)

func ParseFloat32

func ParseFloat32(flags []string, envs []string, defaultValue float32, args []string) (float32, error)

func ParseFloat64

func ParseFloat64(flags []string, envs []string, defaultValue float64, args []string) (float64, error)

func ParseInt

func ParseInt(flags []string, envs []string, defaultValue int, args []string) (int, error)

func ParseInt16

func ParseInt16(flags []string, envs []string, defaultValue int16, args []string) (int16, error)

func ParseInt32

func ParseInt32(flags []string, envs []string, defaultValue int32, args []string) (int32, error)

func ParseInt64

func ParseInt64(flags []string, envs []string, defaultValue int64, args []string) (int64, error)

func ParseInt8

func ParseInt8(flags []string, envs []string, defaultValue int8, args []string) (int8, error)

func ParseString

func ParseString(flags []string, envs []string, defaultValue string, args []string) (string, error)

func ParseUint

func ParseUint(flags []string, envs []string, defaultValue uint, args []string) (uint, error)

func ParseUint16

func ParseUint16(flags []string, envs []string, defaultValue uint16, args []string) (uint16, error)

func ParseUint32

func ParseUint32(flags []string, envs []string, defaultValue uint32, args []string) (uint32, error)

func ParseUint64

func ParseUint64(flags []string, envs []string, defaultValue uint64, args []string) (uint64, error)

func ParseUint8

func ParseUint8(flags []string, envs []string, defaultValue uint8, args []string) (uint8, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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