💡 Added common package documentation comment
This commit is contained in:
parent
6c7ea4a99c
commit
ffeaf8c679
|
@ -1,7 +1,12 @@
|
|||
// Package common contains common constant strings constantly used in other
|
||||
// packages.
|
||||
//
|
||||
// DO NOT import or provide anythyng except constants here.
|
||||
package common
|
||||
|
||||
const charsetUTF8 = "charset=UTF-8"
|
||||
const charsetUTF8 string = "charset=UTF-8"
|
||||
|
||||
// Content types of the HTTP request and response body.
|
||||
const (
|
||||
MIMEApplicationForm string = "application/x-www-form-urlencoded"
|
||||
MIMEApplicationJSON string = "application/json"
|
||||
|
@ -12,6 +17,7 @@ const (
|
|||
MIMETextPlainCharsetUTF8 string = MIMETextPlain + "; " + charsetUTF8
|
||||
)
|
||||
|
||||
// HTTP header names.
|
||||
const (
|
||||
HeaderAccept string = "Accept"
|
||||
HeaderAcceptLanguage string = "Accept-Language"
|
||||
|
@ -27,12 +33,14 @@ const (
|
|||
HeaderXCSRFToken string = "X-CSRF-Token"
|
||||
)
|
||||
|
||||
// Searching class names.
|
||||
const (
|
||||
HApp string = "h-app"
|
||||
HCard string = "h-card"
|
||||
HXApp string = "h-x-app"
|
||||
)
|
||||
|
||||
// Searching property names.
|
||||
const (
|
||||
PropertyEmail string = "email"
|
||||
PropertyLogo string = "logo"
|
||||
|
@ -41,6 +49,7 @@ const (
|
|||
PropertyURL string = "url"
|
||||
)
|
||||
|
||||
// Expected 'rel' attribute values.
|
||||
const (
|
||||
RelAuthn string = "authn"
|
||||
RelAuthorizationEndpoint string = "authorization_endpoint"
|
||||
|
@ -52,4 +61,5 @@ const (
|
|||
RelTokenEndpoint string = "token_endpoint"
|
||||
)
|
||||
|
||||
// Und used as String method output of custom types.
|
||||
const Und string = "und"
|
||||
|
|
Loading…
Reference in New Issue