Golang mime.AddExtensionType() function example
package mime
Golang mime.AddExtensionType() function usage example
mime.AddExtensionType(".svg", "image/svg+xml")
mime.AddExtensionType( ".m3u8", "application/x-mpegURL" );
mime.AddExtensionType( ".ts", "video/MP2T" );
Reference :
Advertisement
Something interesting
Tutorials
+6.1k Golang : How to write backslash in string?
+12.1k Golang : Split strings into command line arguments
+47.8k Golang : Convert int to byte array([]byte)
+23.5k Golang : Check if element exist in map
+12.3k Golang : Print UTF-8 fonts on image example
+14.9k Golang : Submit web forms without browser by http.PostForm example
+27.9k Golang : Decode/unmarshal unknown JSON data type with map[string]interface
+5.2k Golang : Customize scanner.Scanner to treat dash as part of identifier
+8.8k Golang : On lambda, anonymous, inline functions and function literals
+10.4k Golang : cannot assign type int to value (type uint8) in range error
+6k Linux/MacOSX : Search for files by filename and extension with find command
+39.2k Golang : How to read CSV file