You import packages by import path. For package Helper
, located in $GOPATH/src/Helper/
, use:
import "Helper"
While they can work in some cases, relative paths aren’t supported by the go toolchain, and are discouraged.
2
solved How to include external file in Go?