helper

package
v0.0.0-...-785fa05 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContextParam

func ContextParam(name string, req *http.Request) string

ContextParam is a shortcut to get param values encoded in the url path. e.g. the "id" portion of /v1/apps/:id.

func Int64ContextParam

func Int64ContextParam(name string, req *http.Request) (int64, error)

Int64ContextParam extracts an int64 value from the http context.

func Int64GetParam

func Int64GetParam(key string, defaultValue int64, req *http.Request) int64

Types

This section is empty.

Jump to

Keyboard shortcuts

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