Golang mime.FormatMediaType() function example
package mime
Golang mime.FormatMediaType() function usage example.
NOTE : Just an example, modify to suit your requirement
package main
import (
"fmt"
"mime"
)
func main() {
s := mime.FormatMediaType("image/svg+xml", map[string]string{"svg": "\u0001"})
fmt.Printf("%#v", s)
}
Advertisement
Something interesting
Tutorials
+7k Golang : Takes a plural word and makes it singular
+17.1k Golang : Capture stdout of a child process and act according to the result
+9.2k Golang : How to find out similarity between two strings with Jaro-Winkler Distance?
+7.1k Golang : Get Alexa ranking data example
+9.3k Golang : How to protect your source code from client, hosting company or hacker?
+10k Golang : Channels and buffered channels examples
+8.9k Golang : Gaussian blur on image and camera video feed examples
+10.4k Golang : Simple Jawi(Yawi) to Rumi(Latin/Romanize) converter
+21.2k Golang : How to get time zone and load different time zone?
+18.8k Golang : Delete duplicate items from a slice/array
+62.7k Golang : Convert HTTP Response body to string