Bokep
- Viewed 355k times144answered Feb 19, 2016 at 18:03
Well, I figured out the problem. Basically Go starting path for import is $HOME/go/src
So I just needed to add myapp in front of the package names, that is, the import should be:
import ("log""net/http""myapp/common""myapp/routers")Content Under CC-BY-SA license How to import local packages in go? - Stack Overflow
How to import local package in GO? [SOLVED] - GoLinuxCloud
How can I install a package with go get? - Stack Overflow
- Question & Answer
Golang: How To Use the Go Install Command - The New Stack
How To Import Local Files In Golang In 4 Easy Steps
WEBTo import a local Go package you must first identify the module name and then point to the directory where the Go package lives.
Managing dependencies - The Go Programming Language
How to Import Local Packages in Go - Delft Stack
Mastering Packages in Go: A Guide to Importing Local Packages
Importing Packages in Go - DigitalOcean
Import and use local packages in your go application
How to Import Local Packages Using Go Module - SoByte
How to Install a package with GO get? - GeeksforGeeks
Compile and install the application - The Go Programming …
“go install” Command Examples - The Geek Diary
Download and install - The Go Programming Language
Difference Between “go get” and “go install” in Go
How to install packages and dependencies in Golang?
How To Install Go and Set Up a Local Programming
Build and reference my own local package in Go - Stack Overflow
go - Install packages locally in golang module feature - Stack …