impl

package
v0.0.0-...-7038b7e Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2017 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const CacheSize int = 200000

Variables

View Source
var ArticleCache *lru.Cache = initCache()

Functions

func FindPath

func FindPath(startUrl string, endUrl string) (*[]string, *map[string]string)

func GetArticleNameFromParsedUrl

func GetArticleNameFromParsedUrl(inputUrl *url.URL) (string, error)

func GetArticleNameFromUrlString

func GetArticleNameFromUrlString(inputUrl string) (string, error)

func GetUrlStringFromArticleName

func GetUrlStringFromArticleName(articleName string) string

func IsEnWikiArticle

func IsEnWikiArticle(inputUrl *url.URL) bool

func IsReachable

func IsReachable(inputUrl string) bool

Types

type ArticleWithParent

type ArticleWithParent struct {
	Article       string
	ParentArticle string
}

Jump to

Keyboard shortcuts

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