Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
30 lines (22 sloc) 697 Bytes
/*
Title: 2.Values.go
Author: OpenSource
Date: 2017-05-20
Description: For Study
1. Go has various value types including strings, integers, floats, booleans, etc.
2. Here are a few basic examples.
3. Strings, which can be added together with +.
4. Integers and floats.
5. Booleans, with boolean operators as you’d expect.
*/
package main
import "fmt"
func main(){
fmt.Println("2.Values.go--------Start-----------")
fmt.Println("Go "+" Lang")
fmt.Println("7.0/3.0 = ", 7.0/3.0)
fmt.Println("true && false = ",true && false)
fmt.Println("true || false = ",true || false)
fmt.Println("!true = ", !true)
fmt.Println("2.Values.go------------End-----------")
}
You can’t perform that action at this time.