MCPcopy
hub / github.com/adonovan/gopl.io / Func

FuncType Func

ch9/memo2/memo.go:13–13  ·  view source on GitHub ↗

Func is the type of the function to memoize.

func(string) (interface{}, error)

Source from the content-addressed store, hash-verified

11
12// Func is the type of the function to memoize.
13type Func func(string) (interface{}, error)
14
15type result struct {
16 value interface{}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected