package
0.0.0-20240416133349-776b02a0c24b
Repository: https://github.com/adminium/mix.git
Documentation: pkg.go.dev
# README
生成器
约定:context.Context 不作为参数。
规则:
- 如果函数只有一个入参 struct, 且不是 Stringer,则直接将该参数作为函数入参。
- 如果函数只有一个出参 struct, 且不是 Stringer,则直接将该参数作为函数出参。
- 如果函数有多个入参,或只有一个非 struct 入参,则用该函数名生成 Request 对象包装入参。
- 如果函数有多个出参,或只有一个非 struct 出参,则用该函数名生成 Reply 对象包装出参。
- 支持匿名入参,包装 Request 入参时,若参数有名字,则用参数名,否则用 p1,p2... 代替。
- 支持匿名出参,包装 Reply 出参时,若参数有名字,则用参数名,否则用 r1,r2... 代替。
- map 始终转换为 any 类型。
- 重冲指针如 **int 只会保留一个指针。
- 数组和切片都当做切片。
# Functions
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author