httputils

package
v0.0.0-...-2adb2a2 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RecoveryHandler

func RecoveryHandler(next http.Handler) http.Handler

func WriteJson

func WriteJson(ctx context.Context, w http.ResponseWriter, data interface{}, options ...JsonWriteOption)

Types

type JsonWriteOption

type JsonWriteOption func(w http.ResponseWriter)

func WithCode

func WithCode(code int) JsonWriteOption

Jump to

Keyboard shortcuts

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