helpers

package
v0.0.23 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2020 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Find

func Find(ls []interface{}, predicate func(interface{}) bool) interface{}

Find used to find an element in a slice

func IncludeRootInJSON

func IncludeRootInJSON(json interface{}, includeRoot bool, root string) interface{}

IncludeRootInJSON used prepend root in JSON

func Range

func Range(min int, max int) []int

Range used to create slice

func Times

func Times(n int, handler func(int) bool)

Times used to iterate n times with handler

Types

This section is empty.

Jump to

Keyboard shortcuts

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