MCPcopy Index your code
hub / github.com/livebud/bud / loadActionInputStruct

Method loadActionInputStruct

framework/controller/loader.go:354–370  ·  view source on GitHub ↗
(params []*ActionParam)

Source from the content-addressed store, hash-verified

352}
353
354func (l *loader) loadActionInputStruct(params []*ActionParam) string {
355 b := new(strings.Builder)
356 b.WriteString("struct {")
357 for _, param := range params {
358 if param.IsContext() {
359 continue
360 }
361 b.WriteString("\n")
362 b.WriteString("\t\t" + param.Pascal)
363 b.WriteString(" ")
364 b.WriteString(param.Type)
365 b.WriteString(" ")
366 b.WriteString(param.Tag)
367 }
368 b.WriteString("\n\t}")
369 return b.String()
370}
371
372func (l *loader) loadActionResults(results []*parser.Result) (outputs []*ActionResult) {
373 for order, result := range results {

Callers 1

loadActionInputMethod · 0.95

Calls 3

IsContextMethod · 0.80
WriteStringMethod · 0.65
StringMethod · 0.65

Tested by

no test coverage detected