Skip to content

Instantly share code, notes, and snippets.

@hovsep
Created January 8, 2026 07:26
Show Gist options
  • Select an option

  • Save hovsep/d712a163a1a117be94a1e4e553d3b5de to your computer and use it in GitHub Desktop.

Select an option

Save hovsep/d712a163a1a117be94a1e4e553d3b5de to your computer and use it in GitHub Desktop.
FMesh component activation function example
func(this *component.Component) error {
num := this.InputByName("num").Signals().FirstPayloadOrDefault(0) // Read inputs
this.OutputByName("res").PutSignals(signal.New(num.(int) * 3)) // Provide outputs
return nil // Report possible errors
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment