hiboot is a high performance web and cli application framework with dependency injection support
Fixes the issue that previous data response is being remained on response body
Release notes:
default
e.g. annotation at.RestController inherit from at.Annotation
// RestController is the annotation that declare current controller is the RESTful Controller
type RestController struct {
Annotation
}
at.Path
, for request mapping, a value will be injected, no extra at.Path is needed, e.g. a value:"/{id:int}/and/{name}"
will be injected to annotation at.GetMappingfunc (c *UserController) GetUserByPathVariable(at struct{ at.GetMapping `value:"/{id:int}/and/{name}"` },
id int, name string) (response *UserResponse, err error) {
// TODO: add your business logic here
return
}