utils

package
v0.0.0-...-f2abc30 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContextGet

func ContextGet(r *http.Request, key interface{}) interface{}

ContextGet get value from http ctx

func ContextSet

func ContextSet(r *http.Request, key, val interface{}) *http.Request

ContextSet set value to http ctx

func GetStringByCtx

func GetStringByCtx(ctx context.Context, key string) string

GetStringByCtx get string key from ctx

func Recover

func Recover()

Recover catch services recover

Types

This section is empty.

Jump to

Keyboard shortcuts

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