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

Method With

key/key_manager.go:72–76  ·  view source on GitHub ↗

With returns a new manager with added alternating key values. Note: manager is immutable. With Creates a new instance.

(parts ...string)

Source from the content-addressed store, hash-verified

70// With returns a new manager with added alternating key values.
71// Note: manager is immutable. With Creates a new instance.
72func (k manager) With(parts ...string) manager {
73 newKeyManager := manager{}
74 newKeyManager.Prefixes = append(k.Prefixes, parts...)
75 return newKeyManager
76}
77
78// With returns a new manager with added alternating key values.
79// Note: manager is immutable. With Creates a new instance.

Callers 11

WithFunction · 0.95
cronServeMethod · 0.45
cronServeDeprecatedMethod · 0.45
ObserveMethod · 0.45
NewLoggerFunction · 0.45
WithBaggageFunction · 0.45
WithLevelFunction · 0.45
WithLoggingFunction · 0.45
FailMethod · 0.45
ObserveMethod · 0.45
ObserveMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected