- Go was developed by Robert Griesemer, Rob Pike, and Ken Thompson at Google in 2007
- Go is an open source programming language
- Go is a cross-platform. It works on different platforms (Windows, Mac, Linux, Raspberry Pi, etc.)
- Go can be used to create high-performance applications
- Go supports concurrency
- Go is a fast, statically typed, compiled language that feels like a dynamically typed, interpreted language
- Go's syntax is similar to C++ but significant different points are
- Go does not support classes and objects
- Go does not support inheritance
- Go has automatic garbage collection
- Go is fast compile time
- Web development (server-side)
- Developing network-based programs
- Developing cross-platform enterprise applications
- Cloud-native development
Get a relevant installation files at https://golang.org/dl/.
Follow the instructions related to your operating system.
To verify if Go was installed successfully, run this command in terminial
go version
- Launch the VS Code editor
- Open the extension manager(Ctrl + Shift + x), type "go" and hit enter
- Find the Go extension by the GO team at Google and install the extension
- After that, open the command palette( Ctrl + Shift + p), run the Go: Install/Update Tools command
- Select all the provided tools and click OK to install all.
In the folder that includes your Go source files (such as helloworld.go file) In the ternimal (cmd or VS code terminial), type and run
go mod init example.com/hello
go run .\helloworld.go
Congratulations! You have successfully created your first Go program. To save the program as an executable, type and run:
go build .\helloworld.go
and you will get helloworld.exe