We have many different ways to implement project structure in GO.
My question is where the best way to store tests implementation:
separately (as
Java
Maven/Gradle standard)├── pkg │ ├── colocator │ │ ├── some_impl.go │ │ └── ... │ ├── common │ │ └── ... │ └── dashboard │ └── ... ├── test │ │ └── internal │ │ └── some_test_utils.go │ ├── pkg │ │ ├── colocator │ │ │ ├── mocks │ │ │ │ └── some_mock.go │ │ │ └── some_impl_test.go │ │ ├── ...
in place
├── pkg │ ├── colocator │ │ ├── mocks │ │ │ └── some_mock.go │ │ ├── some_impl.go │ │ └── some_impl_test.go
etc...
?