initial commit
This commit is contained in:
commit
493ce92e02
62 changed files with 1213 additions and 0 deletions
20
values/values.go
Normal file
20
values/values.go
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
package main
|
||||
|
||||
import "fmt"
|
||||
|
||||
func main(){
|
||||
// Strings which can be concatinated by +
|
||||
fmt.Println("go"+"lang")
|
||||
// Strings can be iterpolated with a result
|
||||
// of an expression using fmt.Println and
|
||||
// seperating the expression and string by a ,
|
||||
// in this case the string is interpolated with
|
||||
// a sum of ints and sum of floats
|
||||
fmt.Println("1+1=",1+1)
|
||||
fmt.Println("7.0/3.0=",7.0/3.0)
|
||||
|
||||
// Booleans and boolean operators
|
||||
fmt.Println(true && false)
|
||||
fmt.Println(true || false)
|
||||
fmt.Println(!true)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue