🎨 Explicitly set types for common strings

This commit is contained in:
Maxim Lebedev 2023-12-20 07:20:54 +06:00
parent 79eb5fcd5c
commit 2ec9567c24
Signed by: toby3d
GPG Key ID: 1F14E25B7C119FC5
1 changed files with 24 additions and 23 deletions

View File

@ -1,34 +1,35 @@
package common package common
const ( const (
MIMEApplicationForm = "application/x-www-form-urlencoded" MIMEApplicationForm string = "application/x-www-form-urlencoded"
MIMEApplicationFormCharsetUTF8 = MIMEApplicationForm + "; " + charsetUTF8 MIMEApplicationFormCharsetUTF8 string = MIMEApplicationForm + "; " + charsetUTF8
MIMETextHTML = "text/html" MIMETextHTML string = "text/html"
MIMETextHTMLCharsetUTF8 = MIMETextHTML + "; " + charsetUTF8 MIMETextHTMLCharsetUTF8 string = MIMETextHTML + "; " + charsetUTF8
MIMETextPlain = "text/plain" MIMETextPlain string = "text/plain"
MIMETextPlainCharsetUTF8 = MIMETextPlain + "; " + charsetUTF8 MIMETextPlainCharsetUTF8 string = MIMETextPlain + "; " + charsetUTF8
charsetUTF8 = "charset=UTF-8"
) )
const ( const (
HeaderContentType = "Content-Type" HeaderAcceptLanguage string = "Accept-Language"
HeaderLink = "Link" HeaderContentType string = "Content-Type"
HeaderXHubSignature = "X-Hub-Signature" HeaderLink string = "Link"
HeaderAcceptLanguage = "Accept-Language" HeaderXHubSignature string = "X-Hub-Signature"
) )
const ( const (
HubCallback = hub + ".callback" HubCallback string = hub + ".callback"
HubChallenge = hub + ".challenge" HubChallenge string = hub + ".challenge"
HubLeaseSeconds = hub + ".lease_seconds" HubLeaseSeconds string = hub + ".lease_seconds"
HubMode = hub + ".mode" HubMode string = hub + ".mode"
HubReason = hub + ".reason" HubReason string = hub + ".reason"
HubSecret = hub + ".secret" HubSecret string = hub + ".secret"
HubTopic = hub + ".topic" HubTopic string = hub + ".topic"
HubURL = hub + ".url" HubURL string = hub + ".url"
hub = "hub"
) )
const Und = "und" const Und string = "und"
const (
hub string = "hub"
charsetUTF8 string = "charset=UTF-8"
)