moved main.go to test folder
This commit is contained in:
parent
c67a112a28
commit
f67ddb322c
31
main.go
31
main.go
@ -1,31 +0,0 @@
|
|||||||
package main
|
|
||||||
|
|
||||||
import "fmt"
|
|
||||||
|
|
||||||
func main(){
|
|
||||||
var myPrintf string = "This is my Printf"
|
|
||||||
var myPrintln string = "This is my Println"
|
|
||||||
var myPrint string = "This is my Print"
|
|
||||||
var myArray [5]string
|
|
||||||
|
|
||||||
myArray[0] = "hi"
|
|
||||||
|
|
||||||
println := fmt.Println
|
|
||||||
printf := fmt.Printf
|
|
||||||
|
|
||||||
println(myPrintln)
|
|
||||||
printf(myPrintf + "\n")
|
|
||||||
print(myPrint + "\n")
|
|
||||||
|
|
||||||
println(myArray[0])
|
|
||||||
|
|
||||||
f := 11
|
|
||||||
g := 23
|
|
||||||
fmt.Println(f + g)
|
|
||||||
|
|
||||||
if f == 12 {
|
|
||||||
fmt.Println("yes")
|
|
||||||
}else {
|
|
||||||
fmt.Println("no")
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
x
Reference in New Issue
Block a user