utils

package
Version: v0.0.0-...-b4cadb4 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2014 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileExists

func FileExists(file string) bool

func HTMLGetNodeAttribute

func HTMLGetNodeAttribute(node *html.Node, key string) string

func HTMLGetNodeText

func HTMLGetNodeText(node *html.Node) (string, error)

func HTTPGet

func HTTPGet(u *url.URL, HTTPRetry int) (response *http.Response, err error)

func HTTPGetHTML

func HTTPGetHTML(u *url.URL, HTTPRetry int) (*html.Node, error)

func StringSliceContains

func StringSliceContains(haystack []string, needle string) bool

func URLCopy

func URLCopy(u *url.URL) *url.URL

Types

type MultiError

type MultiError []error

func (MultiError) Error

func (errs MultiError) Error() string

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