Documentation ¶ Rendered for linux/amd64 windows/amd64 darwin/amd64 js/wasm Index ¶ func FetchFile(path, proxy string, cacheTTL int, findLocal bool) (string, error) func FileGet(path string) (string, error) func ParseProxy(proxy string) func(*http.Request) (*url.URL, error) func WebGet(targetURL, proxy string, cacheTTL int) (string, error) 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. Source Files ¶ View all Source files fetch.gofileget.gofileshare.gohttp_proxy.gowebget.go Click to show internal directories. Click to hide internal directories.