Skip to content

Latest commit

 

History

History

001_hello_world

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Go Sample Example - Hello World

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.

📖 Information

  • 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.

💻 Code Example

package main

import "fmt"

func main() {
    fmt.Println("Merhaba Dünya!") // Outputs: Merhaba Dünya!
}

🏃 How to Run

  1. Make sure you have Go installed. If not, you can download it from here.
  2. Clone this repository:
    git clone https://github.com/Rapter1990/go_sample_examples.git
  3. Navigate to the 001_hello_world directory:
    cd go_sample_examples/001_hello_world
  4. Run the Go program:
    go run main.go

📦 Output

When you run the program, you should see the following output:

Merhaba Dünya!