utils

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindProjectRoot

func FindProjectRoot() string

FindProjectRoot attempts to locate the directory containing go.mod.

func GetBool

func GetBool(m map[string]any, key string) bool

GetBool safely extracts a bool from a map[string]any.

func GetFloat64

func GetFloat64(m map[string]any, key string) float64

GetFloat64 safely extracts a float64 from a map[string]any.

func GetMap

func GetMap(m map[string]any, key string) map[string]any

GetMap safely extracts a map[string]any from a map[string]any.

func GetSlice

func GetSlice(m map[string]any, key string) []any

GetSlice safely extracts an []any from a map[string]any.

func GetString

func GetString(m map[string]any, key string) string

GetString safely extracts a string from a map[string]any.

Types

This section is empty.

Jump to

Keyboard shortcuts

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