I have the following file structure:
.
├── bin
│ └── hello
├── pkg
└── src
└── jacob.uk.com
├── greeting
│ └── greeting.go
└─
Typing go build does not work with relative import paths; you must type go build main.go.
go install does not work at all with relative import paths.
It is documented at https://golang.org/cmd/go/#hdr-Relative_import_paths
See
for explanation.