MCPcopy
hub / github.com/spf13/cobra / Println

Method Println

command.go:1440–1442  ·  view source on GitHub ↗

Println is a convenience method to Println to the defined output, fallback to Stderr if not set.

(i ...interface{})

Source from the content-addressed store, hash-verified

1438
1439// Println is a convenience method to Println to the defined output, fallback to Stderr if not set.
1440func (c *Command) Println(i ...interface{}) {
1441 c.Print(fmt.Sprintln(i...))
1442}
1443
1444// Printf is a convenience method to Printf to the defined output, fallback to Stderr if not set.
1445func (c *Command) Printf(format string, i ...interface{}) {

Callers 6

executeMethod · 0.95
ExecuteCMethod · 0.95
DebugFlagsMethod · 0.95
preExecHookFunction · 0.80
GenYamlCustomFunction · 0.80

Calls 1

PrintMethod · 0.95

Tested by 1