Skip to content

Instantly share code, notes, and snippets.

@matteopic
Created May 12, 2026 08:12
Show Gist options
  • Select an option

  • Save matteopic/0cc75d2c6b98af4b030a61cf9e8d87a3 to your computer and use it in GitHub Desktop.

Select an option

Save matteopic/0cc75d2c6b98af4b030a61cf9e8d87a3 to your computer and use it in GitHub Desktop.
Common MimeTypes in various languages
package mime
const (
// TextPlain is the MIME type for plain text.
TextPlain = "text/plain"
// ApplicationJSON is the MIME type for JSON data.
ApplicationJSON = "application/json"
// ApplicationXML is the MIME type for XML data.
ApplicationXML = "application/xml"
// TextHTML is the MIME type for HTML data.
TextHTML = "text/html"
// ApplicationFormURLEncoded is the MIME type for URL-encoded form data.
ApplicationFormURLEncoded = "application/x-www-form-urlencoded"
// MultipartFormData is the MIME type for multipart form data, often used for file uploads.
MultipartFormData = "multipart/form-data"
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment