fetch

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FetchFile

func FetchFile(path, proxy string, cacheTTL int, findLocal bool) (string, error)

func FileGet

func FileGet(path string) (string, error)

FileGet 读取本地文件的内容

func ParseProxy

func ParseProxy(proxy string) func(*http.Request) (*url.URL, error)

func WebGet

func WebGet(targetURL, proxy string, cacheTTL int) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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