starting go by example

This commit is contained in:
2021-12-31 15:36:34 +01:00
parent bafba8a7b6
commit afe165089d
11 changed files with 340 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
package main
import "fmt"
func main() {
// Strings
fmt.Println("go" + "lang")
// Integers
fmt.Println("1+1 =", 1+1)
// Floats
fmt.Println("7.0/3.0 =", 7.0/3.0)
//Boolean with operators
fmt.Println(true && false)
fmt.Println(true || false)
fmt.Println(!true)
}