Where should I put my package so that it can be imported by another package?
$ tree
.
├── main.go
└── src
└── test.go
1 directory, 2 files
$ cat src/test.go
package test
$ cat main.go
package main
import "test"
$ go build main.go
main.go:3:8: import "test": cannot find package
Using the service you can track the location of a sent package on Google Maps. The service currently works for packages sent by FedEx, UPS, TNT and DHL. To track a package you just have to enter the package's tracking number. You are then presented with a Google Map that shows the current location of your package.
You may call this phone number to obtain additional information on USPS Text Tracking: 1-800-222-1811.
You can report a missing USPS package by filing a claim at the USPS claims site. The sender or receiver of a USPS package can file a claim, but the original purchase receipt must be available. You can receive a refund for mail that is lost or never delivered to its final destination as long as the package is insured.
Set your GOPATH. Put your package foo source(s) in GOPATH/src/optional-whatever/foo/*.go and use it in code as
import "optional-whatever/foo"
You don't need to explicitly install foo, the go tool is a build tool, it will do that automagically for you whenever necessary.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With