https://github.com/eolinker/go-common
https://github.com/eolinker/go-common
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/eolinker/go-common
- Owner: eolinker
- Created: 2024-06-25T02:26:19.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2025-04-30T07:45:13.000Z (about 1 year ago)
- Last Synced: 2025-08-12T06:40:52.274Z (10 months ago)
- Language: Go
- Size: 78.1 KB
- Stars: 0
- Watchers: 5
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# aoplatform common
# 控制台通用工具包
package
```shell
"github.com/eolinker/go-common"
```
## aolabel
定义
```golang
type Struct struct{
Creator auto.Label `json:"creator" aolabel:"user"`
}
```
auto 赋值
```golang
v:= &Struct{
Creator: auto.UUID("uuid")
}
list:= make([]*Struct{},0)
...
auto.CompleteLabels(cxt,v)
auto.CompleteLabels(ctx,list)
auto.CompleteLabels(ctx,list...)
```
注册完成器
```golang
import (
"github/eolinker/go-common/auto"
)
auto.RegisterService(name, handler)
```