Go, also commonly referred to as golang, is a programming language developed at Google in 2007. Go is recognizably in the tradition of C, but makes many changes to improve conciseness, simplicity, and safety.
Go's syntax includes changes from C aimed at keeping code concise and readable. A combined declaration/initialization operator was introduced that allows the programmer to write i := 3 or s := "some words", without specifying the types of variables. And many more.
Here is a Hello world program in Go:
package main
import "fmt"
import "fmt"
func main() {
fmt.Println("Hello, World")
}
Do comment, if it worked/Not worked for you.
No comments:
Post a Comment