2808 explained code solutions for 75 technologies

golangHow to print boolean with printf()

package main
import "fmt"

func main() {
  fmt.Printf("%t", true)
}ctrl + c
func main() {

declare main function that will be launched automatically

package main

default package declaration


prints formatted string


will print true or false depending on input value


sample boolean value