gstru

package
v0.7.6 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Assignment

func Assignment[T1, T2 any](elem1 T1, elem2 *T2)

Assignment 把结构体1的相同字段赋值给结构体2

func SetField

func SetField(obj interface{}, fieldName string, value interface{})

func StructToMap

func StructToMap(obj interface{}) map[string]string

StructToMap struct to map

func StructToMapInterface

func StructToMapInterface(obj interface{}) 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