gmeta

package
v0.0.0-...-c4191a4 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package gmeta provides embedded meta data feature for struct.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Data

func Data(object interface{}) map[string]string

Data retrieves and returns all metadata from `object`.

func Get

func Get(object interface{}, key string) *gvar.Var

Get retrieves and returns specified metadata by `key` from `object`.

Types

type Meta

type Meta struct{}

Meta is used as an embedded attribute for struct to enabled metadata feature.

Jump to

Keyboard shortcuts

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