- Fast
- Easy To Learn
- Well-Scaled
- Comprehensive
- Time Consuming
- Less Features
- Binaries can be large
$ go version
go version go1.22.5 darwin/arm64$ mkdir example1 && cd example1
$ go mod init github.com/talgat-ruby/lessons-go/lesson1/example1
$ touch main.go// main.go
package main
import "fmt"
func main() {
fmt.Println("Hello, World!")
}Let's run the program
$ go run ./...
Hello, World!Let's build the program and run binary file
$ go build ./... -o hello_world
$ ./hello_worldBuild the hello_world, but now it will print your name instead of World
$ go run ./...
Hello, Talgat!Use the code from exercise 1. And print number of time supplied from the cli argument. Default is 1.
$ go run ./... 3
Hello, Talgat!
Hello, Talgat!
Hello, Talgat!