Language Tour Help

Modules

Every Aura source file belongs to one module, which is determined by the mod statement at the top of the file.

mod main

The only restriction on module names is that the main function that serves as the program's entrypoint must reside inside the main module. Additionally, any functions inside the main module cannot be imported into other modules.

Aura modules are scoped to a single directory. All Aura source files contained in the same directory must belong to the same module. The source files in the same directory can use each other's functions without importing them, even the private functions.

Last modified: 03 April 2024