container

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2024 License: MIT Imports: 4 Imported by: 13

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotFound = errors.New("404")
)

Functions

func Add

func Add[T any](o *T, name ...string)

Add 保存

struct/interface: Add(&val)

@param o var some Add(&some)

func Get

func Get[T any](ptrType *T, name ...string) (err error)

Get 获取

var some; 必须用: Get(&some). 原理是: 变量先存在于内存中. 如果定义一个指针, 必须是var some=new(type)

Types

This section is empty.

Jump to

Keyboard shortcuts

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