MCPcopy
hub / github.com/duke-git/lancet / ExampleBefore

Function ExampleBefore

function/function_example_test.go:21–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19}
20
21func ExampleBefore() {
22 fn := Before(2, func() {
23 fmt.Println("test")
24 })
25
26 fn()
27 fn()
28 fn()
29 fn()
30
31 // Output:
32 // test
33 // test
34}
35
36func ExampleCurryFn_New() {
37 add := func(a, b int) int {

Callers

nothing calls this directly

Calls 1

BeforeFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…