util

package
v0.0.0-...-45e9846 Latest Latest
Warning

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

Go to latest
Published: May 28, 2016 License: Apache-2.0 Imports: 10 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddressParentNode

func AddressParentNode(address string) string

Gives the address to the parent node of a given directory or url

func FetchURL

func FetchURL(url string) ([]byte, error)

func GenerateRandomGroup

func GenerateRandomGroup() string

func GenerateRandomString

func GenerateRandomString(chars string, length int) string

func GetMapChild

func GetMapChild(keys []string, m map[string]interface{}) (interface{}, error)

func JoinURL

func JoinURL(baseURL string, secondURL string) string

func MergeStringMaps

func MergeStringMaps(a map[string]string, b map[string]string) map[string]string

func Relative

func Relative(p string) bool

Relative returns true when p is a relative path returns false otherwise: absolute path, http(s)://url, or an address with github.com prefix

func StringToBool

func StringToBool(s string) (bool, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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