MCPcopy
hub / github.com/livebud/bud / loadRespondHTML

Method loadRespondHTML

framework/controller/loader.go:495–507  ·  view source on GitHub ↗
(results ActionResults)

Source from the content-addressed store, hash-verified

493}
494
495func (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
509func (l *loader) loadProvider(controller *Controller, method *parser.Function) *di.Provider {
510 recv := method.Receiver()

Callers 1

loadActionMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected