This repository contains a simple Go (Golang) program that prints "Merhaba Dünya!" (Hello World!) to the console. It serves as an introductory example for Go, showcasing basic syntax and the use of the fmt
package for output.
- This is the most basic Go program to demonstrate how to print output using the `fmt` package.
- It introduces Go's structure, including the `package main` declaration and the `main` function as the entry point of the program.
package main
import "fmt"
func main() {
fmt.Println("Merhaba Dünya!") // Outputs: Merhaba Dünya!
}
- Make sure you have Go installed. If not, you can download it from here.
- Clone this repository:
git clone https://github.com/Rapter1990/go_sample_examples.git
- Navigate to the
001_hello_world
directory:cd go_sample_examples/001_hello_world
- Run the Go program:
go run main.go
When you run the program, you should see the following output:
Merhaba Dünya!