Check out the exercise and its solution here.
EXERCISE
- Create a new library
- In it, create a function that returns Go version
- Create a command and import your library
- Call your function that returns Go version
- Run your program
HINTS
Create your package function like this:
func Version() string {
return runtime.Version()
}
EXPECTED OUTPUT
It should print the current Go version on your system.