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

Method MustGetSlice

pkg/event/param.go:684–690  ·  view source on GitHub ↗

MustGetSlice returns the slice of generic values from the parameter or panics if the parameter cannot be found.

(name string)

Source from the content-addressed store, hash-verified

682// MustGetSlice returns the slice of generic values from the parameter or
683// panics if the parameter cannot be found.
684func (pars Params) MustGetSlice(name string) params.Value {
685 par, err := pars.findParam(name)
686 if err != nil {
687 panic(err)
688 }
689 return par.Value
690}
691
692// MustGetSliceAddrs returns the slice of addresses or panics if the parameter
693// is not found, or either a parameter is not a slice of addresses.

Callers 3

MustGetSliceAddrsMethod · 0.95
PopMethod · 0.80
processEventMethod · 0.80

Calls 1

findParamMethod · 0.95

Tested by

no test coverage detected