Add constants for Content-Type in GO? You can find it in gin framework
When you type this question ( Add constants for Content-Type in GO? ) in google, the first answer will get this
Unfortunately, this issue didn't answer what we want.
Someday I read gin(a web framework written in Go) source code, and find the constants for Content-Type!
using
gin.MIMEJSON
and it can get application/json