I have a go app with this structure:
rschluet-general-ledger (the project directory)
-administration
-administration.go
-archithreadsdb
-archithreadsdb.go
-main.go
I use this same setup for a number of other packages and they work fine
main.go has
import (
"rschluet-general-ledger/archithreadsdb"
)
main()
uniqueIdentifier := archithreadsdb.NewUniqueIdentifier()
fmt.Println(uniqueIdentifier)
...
I have other packages setup with this same structure and imports and they work fine. In this particular case, I get these errors:
./main.go:4:2: imported and not used: "rschluet-general-ledger/archithreadsdb" as archithreadsDB
./main.go:105:22: undefined: archithreadsdb
Obviously, archithreadsdb IS used. If I purposely create an error in archithreadsdb, that error is reported:
archithreadsdb/archithreadsdb.go:17:2: undefined: cxcxcvx
so I know the compiler is processing archithreadsdb first with no errors(after removing the purposeful error.
I tried calling archithreadsdb from administration package and got the same errors.