tools

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

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

Go to latest
Published: Mar 21, 2016 License: MIT Imports: 11 Imported by: 20

README

go-tools

kitchen for go

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	LOG_DEBUG   *log.Logger = log.New(os.Stdout, "", 0)
	LOG_INFO    *log.Logger = log.New(os.Stdout, "", 0)
	LOG_WARNING *log.Logger = log.New(os.Stdout, "", 0)
	LOG_ERROR   *log.Logger = log.New(os.Stdout, "", 0)
)

Functions

func Capitalize

func Capitalize(s string) string

func CaseInsensitiveContains

func CaseInsensitiveContains(s, substr string) bool

func ComputeHmac256

func ComputeHmac256(message string, secret string) string

func ComputeHmac256Html

func ComputeHmac256Html(message string, secret string) string

func GetClientAddr

func GetClientAddr(r *http.Request) string

Get the client ip address...

func GetParameter

func GetParameter(r *http.Request, parameter string) string

Look into the headers or into the Query parameters for the desired piece of information

func JsonToGolang

func JsonToGolang(in *string) (out string)

func LogError

func LogError(toLog string) error

func LogInit

func LogInit(
	traceHandle io.Writer,
	infoHandle io.Writer,
	warningHandle io.Writer,
	errorHandle io.Writer)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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