(results ActionResults)
| 493 | } |
| 494 | |
| 495 | func (l *loader) loadRespondHTML(results ActionResults) bool { |
| 496 | n := len(results) |
| 497 | if n == 1 || n == 2 { |
| 498 | if results[0].Named || results[0].Type != "string" { |
| 499 | return false |
| 500 | } |
| 501 | if n == 2 && !results[1].IsError { |
| 502 | return false |
| 503 | } |
| 504 | return true |
| 505 | } |
| 506 | return false |
| 507 | } |
| 508 | |
| 509 | func (l *loader) loadProvider(controller *Controller, method *parser.Function) *di.Provider { |
| 510 | recv := method.Receiver() |