util

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Atostr

func Atostr(a interface{}) string

anything to string

func FMapSlice

func FMapSlice(val interface{}, mapFunc func(interface{}))

Applies a function to every element of a value assumed to be a slice

func FieldAccess

func FieldAccess(object interface{}, accessPattern string) (interface{}, error)

fieldAccess accesses fields of an object according to a plan Supports both indexing and named access. E.g. FieldA.0.B would access args[0].FieldA[0].B

func GetSliceBounds

func GetSliceBounds(slice []string, max int) (int, int)

Given an array of the form ["lower" ":" "upper"], returns the lower/upper bounds as ints

func RunLivenessProbe

func RunLivenessProbe(port string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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