utils

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2018 License: BSD-3-Clause Imports: 5 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 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