Go Printing to Stdout and Stderr: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 2: Line 2:
* [[Go_Language#Printing|Go Language]]
* [[Go_Language#Printing|Go Language]]
* [[Go Code Examples#Code_Examples|Go Code Examples]]
* [[Go Code Examples#Code_Examples|Go Code Examples]]
=Bootstrapping Functions=
==<tt>print()</tt>==
=<tt>println()</tt>=
=<tt>println()</tt>=
<syntaxhighlight lang='go'>
<syntaxhighlight lang='go'>

Revision as of 00:11, 19 August 2023

Internal

Bootstrapping Functions

print()

println()

func main() {
  println("something")
}

fmt.Printf()

import "fmt"

// ...
fmt.Printf("something")

Format Strings

fmt.Printf("Hello %s", "Bob")