Skip to content

How are files organized into packages? #1147

Answered by Tetralux
chenzhekl asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Inc0n
Comment options

@Kelimion
Comment options

Answer selected by chenzhekl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants