netutil

package
Version: v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2021 License: GPL-2.0, GPL-2.0-or-later Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetContent

func GetContent(url string) (content []byte, err error)

得到内容

func GetIpFromDomain

func GetIpFromDomain(domain string) string

通过domain得到ip

func WriteUrl

func WriteUrl(url string, toPath string) (length int64, newFilename, path string, ok bool)

toPath 文件保存的目录 默认是/tmp 返回文件的完整目录

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

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