util

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindInArray

func FindInArray(val string, arr []string) (int, bool)

FindInArray : to find data from array

func FindMatchStr

func FindMatchStr(regex string, str string) []string

FindMatchStr : to find substrings matching a regex

func FindValue

func FindValue(bodyJson interface{}, keys []string) (interface{}, error)

FindValue : to find value from map or array using nested keys

func ParseData

func ParseData(body io.ReadCloser) (map[string]interface{}, error)

ParseData : to parse io reader data to map

func ToTime

func ToTime(str string) (time.Duration, error)

ToTime : to convert string to time

func ValidateFile

func ValidateFile(file string) error

Validating input file

Types

This section is empty.

Jump to

Keyboard shortcuts

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