MCPcopy Create free account
hub / github.com/g3n/engine / BuildParams

Method BuildParams

gui/builder_layout.go:192–200  ·  view source on GitHub ↗

BuildParams builds and returns a pointer to DockLayoutParams with the specified attributes

(b *Builder, am map[string]interface{})

Source from the content-addressed store, hash-verified

190
191// BuildParams builds and returns a pointer to DockLayoutParams with the specified attributes
192func (bl *BuilderLayoutDock) BuildParams(b *Builder, am map[string]interface{}) (interface{}, error) {
193
194 edge := am[AttribEdge]
195 if edge == nil {
196 return nil, b.err(am, AttribEdge, "Edge name not found")
197 }
198 params := DockLayoutParams{Edge: edge.(int)}
199 return &params, nil
200}

Callers

nothing calls this directly

Calls 1

errMethod · 0.80

Tested by

no test coverage detected