MCPcopy Index your code
hub / github.com/cilium/cilium / SayHello

Method SayHello

contrib/examples/script/example.go:35–39  ·  view source on GitHub ↗
(name, greeting string)

Source from the content-addressed store, hash-verified

33}
34
35func (e *Example) SayHello(name, greeting string) string {
36 e.log.Info("SayHello() called", "name", name, "greeting", greeting)
37 e.count.Add(1)
38 return fmt.Sprintf("%s %s\n", greeting, name)
39}
40
41func ExampleCommands(e *Example) hive.ScriptCmdsOut {
42 return hive.NewScriptCmds(map[string]script.Cmd{

Callers 1

ExampleCommandsFunction · 0.80

Calls 2

InfoMethod · 0.65
AddMethod · 0.65

Tested by

no test coverage detected