Hello! I wanna start by saying i`m new to programming and i started with GO. So i hope no one will flame or be mean. I`m trying to understand the following things. I have the program Hello World!
package main
import "fmt"
func main() {
fmt.Println("Hello World")
}
The next task sounds like this:
We used the Println function defined in the fmt package. If we wanted to use the Exit function from the os package what would we need to do?
I`m trying to understand the task. Since the fmt package contains the Println function then using the function displays the string content, the Exit function from os package would be used to exit the program right?
Can someone help me out with the code? How do I use the Exit function?