utils

package
Version: v0.0.0-...-926784e Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2016 License: Apache-2.0 Imports: 7 Imported by: 3

Documentation

Overview

Author: Aosen Date: 2016-01-19 QQ: 316052486 Desc: 工具箱

Index

Constants

View Source
const (
	BaseUrl string = "http://www.79xs.com"
	GirlUrl string = "/book/LC/165.aspx"
	GIRL    string = "女生"
	BOY     string = "男生"
)

Variables

View Source
var Stop chan bool = make(chan bool)

停止标志

Functions

func DownloadImage

func DownloadImage(url, path string) (filename string, err error)

下载图片

func InitRequest

func InitRequest(url string, meta interface{}) *robot.Request

func LoadConf

func LoadConf(path string) (settings map[string]string)

func MapCopy

func MapCopy(src map[string]interface{}) map[string]interface{}

map[string]string 拷贝

func Stopspider

func Stopspider()

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL