MCPcopy
hub / github.com/adonovan/gopl.io / echo

Function echo

ch11/echo/echo.go:33–39  ·  view source on GitHub ↗
(newline bool, sep string, args []string)

Source from the content-addressed store, hash-verified

31}
32
33func echo(newline bool, sep string, args []string) error {
34 fmt.Fprint(out, strings.Join(args, sep))
35 if newline {
36 fmt.Fprintln(out)
37 }
38 return nil
39}
40
41//!-

Callers 2

TestEchoFunction · 0.70
mainFunction · 0.70

Calls

no outgoing calls

Tested by 1

TestEchoFunction · 0.56