netutil

package
v0.0.0-...-bcd5b9e Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2015 License: GPL-2.0, GPL-2.0-or-later Imports: 6 Imported by: 2

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 TrimQueryParams

func TrimQueryParams(url string) string

将url ?, #后面的字符串去掉 modified by JacobXie

func WriteUrl

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

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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