元数据类

package
v0.0.0-...-2910145 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package gmeta 提供了为结构体嵌入元数据的功能。

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Data

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

Data 从`object`获取并返回所有元数据。

func Get

func Get(object interface{}, key string) *泛型类.Var

Get 通过 `key` 从 `object` 中获取并返回指定的元数据。

Types

type Meta

type Meta struct{}

Meta 用于作为结构体的嵌入属性,以启用元数据功能。

Jump to

Keyboard shortcuts

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