MCPcopy
hub / github.com/nats-io/nats.go / Get

Method Get

nats.go:4252–4260  ·  view source on GitHub ↗

Get gets the first value associated with the given key. It is case-sensitive.

(key string)

Source from the content-addressed store, hash-verified

4250// Get gets the first value associated with the given key.
4251// It is case-sensitive.
4252func (h Header) Get(key string) string {
4253 if h == nil {
4254 return _EMPTY_
4255 }
4256 if v := h[key]; v != nil {
4257 return v[0]
4258 }
4259 return _EMPTY_
4260}
4261
4262// Values returns all values associated with the given key.
4263// It is case-sensitive.

Callers 1

Calls

no outgoing calls

Tested by 1