fmt.Printf("%d", 42)
fmt.Print(q)
fmt.Print(q+p)
fmt.Print(q+p)
fmt.Print(q)
package main
import "fmt"
func main() {
fmt.Println("hello,ob-go")
}
for i := 1; i < 3; i++ {
fmt.Printf("%d\n", i)
}
1 | 2 |
3 | 4 |
fmt.Printf("%s\n", a[0] + a[1] + string(len(a)))
fmt.Printf("%v", math.Pi)
package main
import "fmt"
func main() {
fmt.Printf("%v", math.Pi)
}
func main() {
fmt.Printf("works")
}
s := "'h' and 'i'"
fmt.Printf("%s\n", s)