util

package
v0.0.0-...-85ede20 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2015 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package util contains some common functions of GO_SPIDER project.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetWDPath

func GetWDPath() string

The GetWDPath gets the work directory path.

func IsDirExists

func IsDirExists(path string) bool

The IsDirExists judges path is directory or not.

func IsFileExists

func IsFileExists(path string) bool

The IsFileExists judges path is file or not.

func IsNum

func IsNum(a string) bool

The IsNum judges string is number or not.

func JsonpToJson

func JsonpToJson(json string) string

JsonpToJson modify jsonp string to json string Example: forbar({a:"1",b:2}) to {"a":"1","b":2}

func MakeHash

func MakeHash(s string) string

string to hash

func XML2mapstr

func XML2mapstr(xmldoc string) map[string]string

simple xml to string support utf8

Types

This section is empty.

Jump to

Keyboard shortcuts

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