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

Method MustGetString

pkg/event/param.go:252–258  ·  view source on GitHub ↗

MustGetString returns the string parameter or panics if an error occurs while trying to get the parameter.

(name string)

Source from the content-addressed store, hash-verified

250// MustGetString returns the string parameter or panics
251// if an error occurs while trying to get the parameter.
252func (pars Params) MustGetString(name string) string {
253 s, err := pars.GetString(name)
254 if err != nil {
255 panic(err)
256 }
257 return s
258}
259
260// GetPid returns the pid from the parameter.
261func (pars Params) GetPid() (uint32, error) {

Callers 3

expireMethod · 0.80
SummaryMethod · 0.80
processEventMethod · 0.80

Calls 1

GetStringMethod · 0.95

Tested by

no test coverage detected