MCPcopy Create free account
hub / github.com/ZeppelinMC/Zeppelin / Println

Function Println

util/log/log.go:144–159  ·  view source on GitHub ↗

* Println prints the content prefixed and suffixed with a carriage return with an endline in the end. Unlike fmt.Println, this doesn't add spaces between the elements This should be used if raw terminal is enabled, but it works without it aswell */

(v ...any)

Source from the content-addressed store, hash-verified

142This should be used if raw terminal is enabled, but it works without it aswell
143*/
144func Println(v ...any) (i int, err error) {
145 if i0, err := fmt.Print("\r"); err != nil {
146 return i0, err
147 } else {
148 i += i0
149 }
150
151 if i0, err := fmt.Print(v...); err != nil {
152 return i0, err
153 } else {
154 i += i0
155 }
156 i0, err := fmt.Println("\r")
157
158 return i + i0, err
159}
160
161/*
162Print prints the content prefixed and suffixed with a carriage return.

Callers 1

EncodeBufMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected