-
Hi, Thank you for the great language. I am learning Odin and get confused about the package organization. It seems quite close to Go but I cannot be sure about that. I tried looking for the answer in the documentation but got nothing. Could anyone please explain it to me? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
This is a bit late, but basically: packages are just folders with |
Beta Was this translation helpful? Give feedback.
This is a bit late, but basically: packages are just folders with
.odin
files in them.You can import them with
import "path/to/folder"
, with the path relative to the current file.You can also import packages from a collection:
import "stuff:path/to/folder"
if you pass-collection:stuff=path/to/root/folder
.