structure

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsTagExist

func IsTagExist(tag, key string, s interface{}) (bool, error)

This function mainly developed to check `json` tag exist in an interface or not.

func StructToMap

func StructToMap(data interface{}) (map[string]interface{}, error)

This function will help you to convert your object from struct to map[string]interface{} based on your JSON tag in your structs.

Types

This section is empty.

Jump to

Keyboard shortcuts

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