util

package
v0.0.0-...-da789b0 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MaxDepth = 32
)

Functions

func BFS

func BFS[K comparable, T any](g graph.Graph[K, T], start K, forward bool, visit func(K, K) bool) error

func GetFieldValue

func GetFieldValue(iface any, fieldName string) any

func InvokeMethodOnUrl

func InvokeMethodOnUrl(method, url string, headers map[string]string, data interface{}) (interface{}, error)

func Merge

func Merge(dst, src map[string]any) map[string]any

Merge recursively merges the src and dst maps. Key conflicts are resolved by preferring src, or recursively descending, if both src and dst are maps.

func ProtoflowHomeDir

func ProtoflowHomeDir() (string, error)

func SetInterfaceField

func SetInterfaceField(obj any, fieldName string, newValue any) error

func ToSnakeCase

func ToSnakeCase(str string) string

func ToTitleCase

func ToTitleCase(str string) string

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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