2019-10-05 16:12:52 +03:00

23 lines
701 B
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// В Go существуют различные типы значений: строки,
// целые числа, числа с плавающей точкой, булевы и т.д.
// Вот некоторые примеры
package main
import "fmt"
func main() {
// Строки могут быть сложены с помощью символа `+`.
fmt.Println("go" + "lang")
// Целый числа и числа с плавающей точкой.
fmt.Println("1+1 =", 1+1)
fmt.Println("7.0/3.0 =", 7.0/3.0)
// Логические значения с логическими операторами
fmt.Println(true && false)
fmt.Println(true || false)
fmt.Println(!true)
}