> ## Documentation Index
> Fetch the complete documentation index at: https://flame-lang.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Structs

Struct is data type that can store other variables and have methods. It organizes variables and functions into one object that called `structure` . Example:

```shellscript theme={null}
struct point {
    i32 x;
    i32 y;

    func whereami() void {
        print("You at ", x, " ", y, "\n");
    }
}

point point_var; // constructurs is coming soon!
```

Structure `point` have two fields, `x` and `y`. They can be accessed like this: `point_var.x` Also you can use methods to do something with values that your structure is holding, in our example method `whereami` prints `point.x` and `point.y`.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.