05-write-your-first-library-package/exercise/README.md
Check out the exercise and its solution here.
Create your package function like this:
func Version() string {
return runtime.Version()
}
It should print the current Go version on your system.
You should create this package under your own folder, not in github.com/inancgumus/learngo folder. Also, please note that VS Code may automatically import my library which is in github.com/inancgumus/learngo instead of your own library.
So, if you want VS Code automatically import your own package when you save, just move github.com/inancgumus/learngo out of GOPATH to somewhere else, for example, to your Desktop (of course move it back afterward).
See this question in Q&A for more information.