MCPcopy Create free account
hub / github.com/rabbitstack/fibratus / MustGetUint16

Method MustGetUint16

pkg/event/param.go:411–417  ·  view source on GitHub ↗

MustGetUint16 returns the underlying uint16 value parameter. It panics if an error occurs while trying to get the parameter.

(name string)

Source from the content-addressed store, hash-verified

409// MustGetUint16 returns the underlying uint16 value parameter. It panics if
410// an error occurs while trying to get the parameter.
411func (pars Params) MustGetUint16(name string) uint16 {
412 v, err := pars.GetUint16(name)
413 if err != nil {
414 panic(err)
415 }
416 return v
417}
418
419// TryGetUint16 tries to retrieve the uint16 value from the parameter.
420// Returns the underlying value on success, or zero otherwise.

Callers

nothing calls this directly

Calls 1

GetUint16Method · 0.95

Tested by

no test coverage detected