tutorial1

command
v0.0.0-...-888ad6a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 20, 2024 License: MIT Imports: 1 Imported by: 0

README

Tutorial-1 - Basics

This package contains a simple Go program, main.go, which is explained below:

main.go

The main.go file is a simple Go program that prints "Radhe Radhe" to the standard output.

Here's a breakdown of the code:

  • package main: This line defines the package name of this Go program. Every Go program starts running in a package called main.

  • import "fmt": This line imports the built-in fmt package in Go which provides functions for formatted I/O.

  • func main(): The main() function is the entry point of our program. The Go runtime calls this function when the program starts, and where the program execution begins.

  • fmt.Println("Radhe Radhe"): This line calls the Println function from the fmt package to print the string "Radhe Radhe" to the standard output.

  • This program, when run, will simply print "Radhe Radhe" to your console.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL