My program uses several files like *.json, *.db
How should i place they? First variant:
project
|-> src
|-> main
| main.go
| main_test.go
|-> data
| database.db
|-> config
| config.go
|-> data
| config.json
...
Or:
project
|-> src
|-> main
| main.go
| main_test.go
|-> config
| config.go
...
|-> data
| database.db
| config.json
I would prefer second variant, but I get troubles when try to write tests. I tried to use "/absolute/path", but it doesn't work, because it points to ".../src/main/ folder.