MCPcopy Create free account
hub / github.com/bep/gr / NewSimpleComponent

Function NewSimpleComponent

component.go:195–197  ·  view source on GitHub ↗

NewSimpleComponent can be used for quickly putting together components that only need to implement Renderer with no need of the owner (this) argument. Especially convenient for testing.

(c Component, options ...Option)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 2

NewFunction · 0.85
NewSimpleRendererFunction · 0.85

Tested by

no test coverage detected