ampCacheURL

package module
v0.0.0-...-8f3d590 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 2, 2017 License: MIT Imports: 5 Imported by: 0

README

amp-cache-url

AMP Cache URL

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

func GetCacheURL(rawurl string) (string, error)

GetCacheURL returns AMP-Cache-URL of provide URL or error.

func GetOriginURL

func GetOriginURL(rawurl string) (string, error)

GetOriginURL returns origin URL of provide AMP-Cache-URL or error.

func IsCacheURL

func IsCacheURL(rawurl string) bool

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

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL