mapping

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// HTMLExtension is the file extension that downloaded pages get.
	HTMLExtension = ".html"

	// PageDirIndex is the file name of the index file for every dir.
	PageDirIndex = "index" + HTMLExtension
)

Variables

This section is empty.

Functions

func GetFilePath

func GetFilePath(url *url.URL, isAPage bool) string

GetFilePath returns a file path for a URL to store the URL content in.

func GetPageFilePath

func GetPageFilePath(url *url.URL) string

GetPageFilePath returns a filename for a URL that represents a page.

Types

This section is empty.

Jump to

Keyboard shortcuts

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