Undertook the study of Go.
Wrote a simple program:
package main import ( "fmt" ) func main() { fmt.Print("Enter a ft: ") var ft float64 fmt.Scanf("%f", &ft) output := ft * 0.3048 fmt.Println(output, "m") } After compiling it, after execution, it is instantly closed.
The question is how to avoid instant closing? (preferably a link to this topic in the documentation)