mirror of
https://github.com/kataras/iris.git
synced 2026-02-06 10:45:57 +00:00
split of the mvc and the new hero package is completed, now handlers with input and output binding feature is a different feature than the mvc, however the mvc controller's methods can use the hero dependency injection as before (v10+)
Former-commit-id: d67f5a5ed9033286bcc4c04f6be612823cba2a57
This commit is contained in:
21
mvc/go19.go
Normal file
21
mvc/go19.go
Normal file
@@ -0,0 +1,21 @@
|
||||
// +build go1.9
|
||||
|
||||
package mvc
|
||||
|
||||
import "github.com/kataras/iris/hero"
|
||||
|
||||
type (
|
||||
|
||||
// Result is a type alias for the `hero#Result`, useful for output controller's methods.
|
||||
Result = hero.Result
|
||||
// Response is a type alias for the `hero#Response`, useful for output controller's methods.
|
||||
Response = hero.Response
|
||||
// View is a type alias for the `hero#View`, useful for output controller's methods.
|
||||
View = hero.View
|
||||
)
|
||||
|
||||
var (
|
||||
// Try is a type alias for the `hero#Try`,
|
||||
// useful to return a result based on two cases: failure(including panics) and a succeess.
|
||||
Try = hero.Try
|
||||
)
|
||||
Reference in New Issue
Block a user