package param import ( "context" ) func GetReferer(c context.Context) string { referer := c.Value("referer") if _, ok := referer.(string); ok { return referer.(string) } return "" }