i am sure this has been asked many, many times: »How can i create and manage my go-packages locally without for example github ?«
I need to convert a couple of tools that were written in Perl to golang and i am fighting with golang's package management, simple example:
I wrote the main-package, containing the main function and a couple of other functions. Now i want to move a group of functions into another package:
- Created another package in the same directory and moved the group of functions there
- Built the package and the binary-file was created
- Tried to import this package into the main package and miserably failed. "PackageName", "./PackageName" "[fullpath]/PackageName" all fails
For starters: How can i import a package from the local file-system?