ss/contents/main.go

30 lines
457 B
Go
Raw Normal View History

package contents
type Option interface {
KeyValue() [2]string
}
2024-01-10 18:23:02 +03:00
type CharSet string
const (
Utf8 CharSet = "utf-8"
2024-01-10 18:23:02 +03:00
)
func (cs CharSet) KeyValue() [2]string {
return [2]string{
"charset",
string(cs),
}
}
2024-01-10 18:23:02 +03:00
type Type string
const (
// Using the UTF-8 by default.
Unknown Type = "application/octet-stream"
2024-01-10 18:23:02 +03:00
Binary
Plain= "text/plain"
Css= "text/css"
Html= "text/html"
Json= "application/json"
UrlEncoded= "application/x-www-form-urlencoded"
)
2024-01-10 18:23:02 +03:00