utils

package
v0.9.5 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2017 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Common utilities

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildPath

func BuildPath(host string, elements []string) string

func ConcatIdentifiers

func ConcatIdentifiers(ids []string) string

* Concats a string array of ids in the form of /id with an output string of id, id2, etc

func ConcatInts

func ConcatInts(iarr []int) string

func Contains

func Contains(elements []string, value string) bool

func ElapsedStr

func ElapsedStr(d time.Duration) string

func HasPrefix

func HasPrefix(str string, prefixes ...string) bool

func HasURLScheme

func HasURLScheme(url string) bool

func IntInSlice added in v0.8.3

func IntInSlice(a int, list []int) bool

func MapStringKeysToSlice added in v0.8.3

func MapStringKeysToSlice(m map[string]string) []string

func StringInSlice added in v0.8.3

func StringInSlice(a string, list []string) bool

func TrimRootPath

func TrimRootPath(id string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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