Built-in function
Go println()
Implementation-oriented debugging output, typically with spaces and a trailing newline. Operand support, formatting and destination are implementation-dependent. Prefer fmt.Println for application output. In the local toolchain this writes 42 to stderr with a newline.
Formal Syntax & Structure
go syntaxgo
println(values...)Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| values | implementation-supported values | Zero or more values to display. |
Working Example
Example Snippetgo
package main
func main() { println(42)}