Documentation
¶
Index ¶
- func CheckParams(params *types.Tuple) error
- func CheckResults(results *types.Tuple) error
- func InitializeFileCommon(f *jen.File)
- func IsQueryStringSerializable(t types.Type) bool
- func IsSerializable(t types.Type) bool
- func ResolveFullPackagePath(origin, dirpath string) (string, error)
- func UnmarshalAnnotations(cg *ast.CommentGroup, dest any) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckParams ¶ added in v0.0.4
CheckParams checks if the function signature meets the following requirements:
- The first parameter must be context.Context.
- The second parameter must be an exported struct.
func CheckResults ¶ added in v0.0.4
CheckResults checks if the function signature meets the following requirements:
- The first return value must be exported serializable struct. response struct must have Code (int) and Message (string) field.
- The second return value must be of type error.
func InitializeFileCommon ¶ added in v0.0.4
func IsQueryStringSerializable ¶ added in v0.0.4
func IsSerializable ¶ added in v0.0.4
IsSerializable check is given type serializable
func ResolveFullPackagePath ¶
ResolveFullPackagePath 从给定路径向上搜索go模块根目录,返回完整包名
func UnmarshalAnnotations ¶ added in v0.0.4
func UnmarshalAnnotations(cg *ast.CommentGroup, dest any) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.