mmeta

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Data

func Data(object any) map[string]string

Data returns all metadata of `object` as map. The parameter `object` can be any struct object or pointer to struct.

func Get

func Get(object any, key string) *mvar.Var

Get returns the value of the specified metadata by key. The parameter `object` can be any struct object or pointer to struct.

func ParseTag

func ParseTag(tag string) map[string]string

ParseTag parses the tag string to a map

func StructType

func StructType(object any) (reflect.Type, error)

StructType retrieves and returns the reflection type of the structure

Types

type Meta

type Meta struct{}

Meta is used as an embedded property to enable metadata features

Jump to

Keyboard shortcuts

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