Menu

Help with including a folder when building/running

#golang#redditgolang#project#internal#folder
Reading 0:00
15s threshold

I'm very new to Go, and right now I'm rewriting one of my Python projects (https://codeberg.org/theesplatt/Wallflower) in Go, but I'm having some troubles with project structure.

My current project structure is:

``` /

|- build/

|-- (compiled binary and internal/ goes here)

|- src/

|-- internal/

|--- (images, config files)

|-- go.mod

|-- go.sum

|-- main.go (and others)

|- README, gitignore, other stuff ```

I can't find a way to compile or run my project with the internal/ folder included in the build directory. On it's own, that's not much of an issue, however the fact that it's not a feature I can find makes me think I'm doing this wrong.

Thanks!