github.com/GeniusesGroup/libgo@v0.0.0-20220929090155-5ff932cb408e/mediatypes/media-types-text.go (about) 1 /* For license and copyright information please see LEGAL file in repository */ 2 3 package mediatypes 4 5 import ( 6 "../mediatype" 7 "../protocol" 8 ) 9 10 var ( 11 ASC mediatype.MediaType 12 13 CSS mediatype.MediaType 14 CSV mediatype.MediaType 15 16 ICS mediatype.MediaType 17 18 TEXT mediatype.MediaType 19 TXT mediatype.MediaType 20 21 HTM mediatype.MediaType 22 HTML mediatype.MediaType 23 24 TSV mediatype.MediaType 25 26 XSL mediatype.MediaType 27 XSD mediatype.MediaType 28 ) 29 30 func init() { 31 ASC.Init("text/plain") 32 ASC.SetFileExtension("asc") 33 ASC.SetDetail(protocol.LanguageEnglish, "", "", "", "", "", []string{}) 34 35 CSS.Init("text/css") 36 CSS.SetFileExtension("css") 37 CSS.SetDetail(protocol.LanguageEnglish, "Cascading Style Sheets", "", "", "", "", []string{}) 38 39 CSV.Init("text/csv") 40 CSV.SetFileExtension("csv") 41 CSV.SetDetail(protocol.LanguageEnglish, "Comma-separated values", "", "", "", "", []string{}) 42 43 ICS.Init("text/calendar") 44 ICS.SetFileExtension("ics") 45 ICS.SetDetail(protocol.LanguageEnglish, "iCalendar format", "", "", "", "", []string{}) 46 47 TEXT.Init("text/plain") 48 TEXT.SetFileExtension("text") 49 TEXT.SetDetail(protocol.LanguageEnglish, "", "", "", "", "", []string{}) 50 51 TXT.Init("text/plain") 52 TXT.SetFileExtension("txt") 53 TXT.SetDetail(protocol.LanguageEnglish, "", "", "", "", "", []string{}) 54 55 HTM.Init("text/html") 56 HTM.SetFileExtension("htm") 57 HTM.SetDetail(protocol.LanguageEnglish, "HyperText Markup Language", "", "", "", "", []string{}) 58 59 HTML.Init("text/html") 60 HTML.SetFileExtension("html") 61 HTML.SetDetail(protocol.LanguageEnglish, "HyperText Markup Language", "", "", "", "", []string{}) 62 63 TSV.Init("text/tab-separated-values") 64 TSV.SetFileExtension("tsv") 65 TSV.SetDetail(protocol.LanguageEnglish, "", "", "", "", "", []string{}) 66 67 XSL.Init("text/xml") 68 XSL.SetFileExtension("xsl") 69 XSL.SetDetail(protocol.LanguageEnglish, "", "", "", "", "", []string{}) 70 71 XSD.Init("text/xml") 72 XSD.SetFileExtension("xsd") 73 XSD.SetDetail(protocol.LanguageEnglish, "", "", "", "", "", []string{}) 74 75 }