These are chat archives for gin-gonic/gin
Gin is a web framework written in Golang. It features a Martini-like API with much better performance -- up to 40 times faster. If you need smashing performance, get yourself some Gin.
/is the magic character that exits the current capture for params. So, of you wanted to handle the above, you could write it like
/api/v1/object/*action, then inside the handler for that path, you could do a
path.Base()call to get everything from the end of
actionto the last
/. Then run that through a switch to pass the request into that specific handler.
presignedurl, and you switch on the return of path.Base, and then execute what you wanted to put in your HandlerFunc in the first place.
strings.Split("/"), and that way if you needed to know test, demo1, etc you could write plenty of custom logic for what essentially becomes a prefix of