MCPcopy
hub / github.com/vektra/mockery / Numbers

Interface Numbers

template_funcs/functions.go:37–39  ·  view source on GitHub ↗

Numbers defines the generic constraints of the arithmetic arguments.

Source from the content-addressed store, hash-verified

35
36// Numbers defines the generic constraints of the arithmetic arguments.
37type Numbers interface {
38 constraints.Integer | constraints.Float | constraints.Complex
39}
40
41// Add adds the given numbers.
42func Add[T Numbers](i1 T, in ...T) T {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…