In this article, we will be going to write and run the first program in Golang with details.
so please bear with me to watch till the end the article will help you to know about Golang.

Let’s get started

Writing First program in Golang.
package main

import (

func main() {
fmt.Println("welcome to golang rest api with fiber framework course")


package main every go lang application has default main function inside main package so you can consider it is the entry point for go lang application.

import “fmt” is a built-in library of go used for printing anything to the console for debugging or printing message in the console.

function main in go we declare a function with func keyword and the main function help to run the go application.
inside in the main function will execute first.

Thank you for reading the article.

For more about go Please see the full Course :