MCPcopy Create free account
hub / github.com/PacktPublishing/Learning-Go-Programming / doBinary

Function doBinary

ch05/funcs.go:123–125  ·  view source on GitHub ↗

doBinary illustrates first-order function capability in Go. It invokes invokes any function that takes two ints and return an integer as a result (i.e. 2 + 3, or 9 * 5, etc)

(f func(int, int) int, op1, op2 int)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

mainFunction · 0.85

Calls 1

fFunction · 0.85

Tested by

no test coverage detected