Documentation ¶
Overview ¶
Package annotation parse annotation from source code file and recognize follows.
Comment @Handler("name", "pkg.ExampleHandler") to define handler and use @Middleware("name") to use it around Controller handler or route handler.
Index ¶
Constants ¶
View Source
const ( Description = "Build middleware mapping, controller and controller handler" Name = "gen:annotation" OptPath = "path" OptPathDesc = "Source code path, e.g. ./" OptPathShort = 'p' OptPathValue = "app/annotations" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.