package
0.0.0-20211113074651-c6ea6ab4ee08
Repository: https://github.com/tsaikd/kdgolib.git
Documentation: pkg.go.dev
# Functions
AnalyzeRequestStruct analyze request struct object, produce request struct map struct field with tag `apijs:"inherit"` will extend the field arguments repl used for custom function name generator.
AnalyzeStructParams analyze requestStruct fields and fill funcArgs/params.
No description provided by the author
BindRouter bind all registed apis to martini router.
No description provided by the author
No description provided by the author
GetAPINameByPattern return API name by analyze pattern.
GetFuncNameByPattern return API name by analyze pattern.
GetPathByPattern return api path by analyze pattern.
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
Regist API.
RegistedApiMap return all registed API.
RegistedSortedApiMap return all registed API sorted.
ReplaceContinuousNewLine replace continuous newline.
Reset all registed API, used for testing.
TailComma return "," if idx is the last of params.
TrimReplaceStartSpace trim space and replace start space with repl per line.
TrimStartSpaceEmptyLine remove empty line with start space.
No description provided by the author
# Structs
ExtraStruct contain struct name, type info, and params info.
RequestInfo contains request function name, params.
RequestParam contain param name and type info.
# Type aliases
ExtraStructs is slice type of ExtraStruct.
RequestParams is slice type of RequestParam.