Documentation ¶
Index ¶
Constants ¶
View Source
const ( // CdnAmpprojectOrg is CDN of AMP project. CdnAmpprojectOrg string = "cdn.ampproject.org" )
Variables ¶
This section is empty.
Functions ¶
func GetCacheURL ¶
GetCacheURL returns AMP-Cache-URL of provide URL or error.
func GetOriginURL ¶
GetOriginURL returns origin URL of provide AMP-Cache-URL or error.
func IsCacheURL ¶
IsCacheURL returns if provide string is AMP-Cache-URL.
Types ¶
type BadURLError ¶
type BadURLError struct {
// contains filtered or unexported fields
}
BadURLError is error on AMP-Cache-URL.
func (BadURLError) Error ¶
func (err BadURLError) Error() string
Click to show internal directories.
Click to hide internal directories.