Go is an open source and compiled programming language. It is developed at Google to build, reliable software.
why do we need GO?
* Compiles to native code
* Type safe - We have to declare before use a variable
* Garbage collector - It will allocate and deallocate a GC by automatically.
Every Go source file is part of a package.
We have to import when do we call other package in your program
The main function is called hen a program first starts..
Go fmt utility:
It will fix the code style automatically.
Go run utility:
* It compiles a Go source file and runs it.
Go build - It compile Go source file into an executable
Calling Function:
package main
import (
"fmt"
"math"
)
func main() {
fm.Println(math.Floor(1))
fmt.Println("Hello")
}
}

No comments:
Post a Comment