Skip to content
Xen / docs

Search documentation

English · v0.1.0-demo.2

Type to search the documentation.

    한국어
    Xen / reference v0.1.0-demo.2

    Modules and names

    Declare a module with a name such as module app;. Import it with import shop.model as model;. Paths are relative to the entry file and must match declared module names. Access names through their module alias, for example model.Item.

    Import with a statement such as use std.string as text;. Use import for project files and use for standard modules. Keep a distribution’s bin/ and stdlib/ together.

    Learn more: Working with multiple files