MCPcopy Create free account
hub / github.com/DoNewsCode/core / ExampleKeepOdd

Function ExampleKeepOdd

key/example_test.go:23–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21}
22
23func ExampleKeepOdd() {
24 keyer := key.New("module", "foo", "service", "bar")
25 fmt.Println(key.KeepOdd(keyer).Spread())
26 // Output:
27 // [foo bar]
28}
29
30func Example_key() {
31 keyer := key.New("module", "foo", "service", "bar")

Callers

nothing calls this directly

Calls 3

NewFunction · 0.92
KeepOddFunction · 0.92
SpreadMethod · 0.65

Tested by

no test coverage detected