Hi ! In this article, we will print ‘Hi bro, watsup ?’ in the Go programming language on Linux.

First, make sure that you have Go installed.

We will install go using yay on Arch linux btw:

1
$ yay -S go

Then, open a new hi.go file using your text editor (vim in my case) and start coding:

1
$ vim hi.go
1
2
3
4
5
6
7
package main

import fmt

func main() {
    fmt.Println("Hi bro, watsup ?")
}

Almost done, now exit your text editor and compile your code with the following command:

1
$ go build hi.go

Finally, running the executable will give you the following output:

1
2
$ ./hi
$ Hi bro, watsup ?

Thank you for reading !