package main
import "fmt"
func main() {
// constants are declared like variables
// cannot be declared with the := syntax
const Pi = 3.1415926535
const Zero int = 0
fmt.Printf("Type: %T Value: %v\n", Pi, Pi)
fmt.Printf("Type: %T Value: %v\n", Zero, Zero)
}
To embed this program on your website, copy the following code and paste it into your website's HTML: