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

Function ExampleWith

key/example_test.go:16–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14}
15
16func ExampleWith() {
17 keyer := key.New("module", "foo")
18 fmt.Println(key.With(keyer, "service", "bar").Spread())
19 // Output:
20 // [module foo service bar]
21}
22
23func ExampleKeepOdd() {
24 keyer := key.New("module", "foo", "service", "bar")

Callers

nothing calls this directly

Calls 3

NewFunction · 0.92
WithFunction · 0.92
SpreadMethod · 0.65

Tested by

no test coverage detected