I am new here so sorry if I am asking super newb questions. I can't seem to find doc information on how to use modules/namespaces in the official documents. I'm not finding examples that show usage of different files/namespaces besides std.
I used zig init to set up a project and have a foo.zig file with some functions next to main.zig in the src folder. But when I try to use const foo = @import("foo"); the compiler can't find it. I've tried all sorts of paths.
In the unofficial zig.guide they have a thing on modules (https://zig.guide/build-system/modules) but that seems to be for pulling in full libraries and such. Or do I have to modify my build.zig and reorganize my whole project for small files as well?
The Zig build system has the concept of modules, which are other source files