Created
March 27, 2018 14:07
-
-
Save depado/56da66d102fc252882301f591829b714 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func specify(c *gin.Context, dfr *df.Request) { | |
var err error | |
var p searchParams | |
if err = dfr.GetContext("Search-followup", &p); err != nil { | |
logrus.WithError(err).Error("Couldn't get parameters") | |
c.AbortWithStatus(http.StatusBadRequest) | |
return | |
} | |
spew.Dump(p) | |
c.JSON(http.StatusOK, gin.H{}) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment