utils

package
v0.12.3 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetNestedField

func SetNestedField(obj interface{}, fieldPath string, newValue interface{}) error

SetNestedField modifies a nested struct field dynamically via reflection. obj: Pointer to the target struct. fieldPath: Dot-separated path (e.g., "Address.City", "Address.[json]city", "Address.[json]cit"). newValue: Value to set.

Types

This section is empty.

Jump to

Keyboard shortcuts

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