Variables à Golang
package main
import "fmt"
func main() {
number := 100
decimal := 98.6
phrase := "Hello World"
result := true
}
Old Pizza
package main
import "fmt"
func main() {
number := 100
decimal := 98.6
phrase := "Hello World"
result := true
}
package main
import "fmt"
var (
product = "Mobile"
quantity = 50
price = 50.50
inStock = true
)
func main() {
fmt.Println(quantity)
fmt.Println(price)
fmt.Println(product)
fmt.Println(inStock)
}
var msg string
msg = "Hello"