field

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2024 License: Apache-2.0 Imports: 1 Imported by: 23

README

解释

为什么gox.Field要定义成接口,且要增加一个field包,原因是

  • 兼容以前的代码
  • 强制使用使用field.New来创建字段,且为指针

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Error

func Error(err error) *_any[error]

Error 创建错误字段

func New added in v0.1.3

func New[T any](key string, value T) *_any[T]

func Type added in v0.1.3

func Type[T any](key string, value T) *_type[T]

Types

This section is empty.

Jump to

Keyboard shortcuts

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