Example #1
0
File: gogo.go Project: pilwon/gogo
func Param(c context.Context, key string) string {
	val, ok := gogocontext.ParamsFromContext(c)[key]
	if !ok {
		return ""
	}
	return val
}
Example #2
0
File: gogo.go Project: pilwon/gogo
func Params(c context.Context) gogocontext.Params {
	return gogocontext.ParamsFromContext(c)
}