This question already has an answer here:
I am creating a http server with Golang. (I have a Php dev background.) In the internal/app/model I plan on making several packages with artificial logic and I would wish to load all the sub-directories of the model folder in main.go.
I have following folder structure:
[project folder]
\_cmd
\_main.go
.
.
.
\_internal
\_app
\_model
\_article
\_product
I have tried something in this sense without success:
import (
"[project_folder]/[project]/internal/app/model/*"
)
</div>