Reputation: 198
A critical component of my golang app uses the ported GraphicsMagick library which requires building the library with -tags gm
.
For example:
go build -tags gm
However, I'm building the web service based on the negroni framework and running it with gin which allows me to run the app with the command gin
. I cannot find any way of passing build tags to gin. Any suggestions?
Upvotes: 0
Views: 455
Reputation: 198
Not an ideal solution but it appears codegangsta/gin is abandoned so support for build tags simply won't be added. Instead, Github user omeid has compiled a patch and using his fork of gin will allow use of build tags.
go get github.com/omeid/gin
gin -tags gm
Upvotes: 0