utils

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2018 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BlockSlideSlice

func BlockSlideSlice(array interface{}, blockSize int, f func(interface{}) bool)

func FromTextSize

func FromTextSize(size string) (int64, error)

func InSlice

func InSlice(val interface{}, array interface{}) (exists bool, index int)

func IsLocalIP added in v0.0.6

func IsLocalIP(localIP net.IP) (bool, error)

func RegexFirstSubmatchString

func RegexFirstSubmatchString(regex string, str string) string

func RegexMustMatch

func RegexMustMatch(regex string, str string) bool

func RegexSubmatchTypedMap

func RegexSubmatchTypedMap(regex string, str string, typeMapper func(string) interface{}) map[string]interface{}

func ToInt64Slice

func ToInt64Slice(array []string) ([]int64, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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