MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / structToProps

Function structToProps

tsunami/engine/clientimpl.go:324–330  ·  view source on GitHub ↗
(props any)

Source from the content-addressed store, hash-verified

322}
323
324func structToProps(props any) map[string]any {
325 m, err := util.StructToMap(props)
326 if err != nil {
327 return nil
328 }
329 return m
330}
331
332func DefineComponentEx[P any](client *ClientImpl, name string, renderFn func(props P) any) vdom.Component[P] {
333 if name == "" {

Callers 1

DefineComponentExFunction · 0.85

Calls 1

StructToMapFunction · 0.92

Tested by

no test coverage detected