http

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var HTML = `` /* 845-byte string literal not displayed */

Functions

func Download

func Download(url string, output string)

func DownloadLinksInHtml

func DownloadLinksInHtml(url string, regex string, output string)

func FilePathHandler

func FilePathHandler(respWriter http.ResponseWriter, request *http.Request)

func GetHtml

func GetHtml(url string) goquery.Document
func GetLinks(url string, regex string) list.List

func SimpleHttpFS

func SimpleHttpFS() error

func UrlJoin

func UrlJoin(url1 string, url2 string) string

Types

type HTTPFSConfig

type HTTPFSConfig struct {
	Port int16
	Root string
}
var FSConfig HTTPFSConfig

type WebFile

type WebFile struct {
	Dir  string
	Name string
}

func (*WebFile) IsDir

func (webFile *WebFile) IsDir() bool

func (*WebFile) LogicPath

func (webFile *WebFile) LogicPath() string

func (*WebFile) WebPath

func (webFile *WebFile) WebPath() string

Jump to

Keyboard shortcuts

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