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: 0

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