Boomla language docs
File type
+
Overview
Types
Nil type
Boolean type
Numeric types
String type
Array type
Map type
Struct type
Function type
File type
Bucket type
Reference types
Box type
Expressions
Operators
Get expressions
Index expressions
Slice expressions
Grouping
Literals
Instantiations
Identifiers
Call expressions
Xml expressions
Function literals
As expressions
Statements
Import statement
Type declarations
Var declarations
Function declarations
Method declarations
Assign statement
If statement
For statement
Assert statement
Return statement
Fail statement
Panic statement
Yield statement
Break statement
Continue statement
Defer statement
IncDec statement
Expression statement
Block statement
File type
A file is exactly like a struct when in memory. The difference is in storing it on the filesystem, where a file gets an addition 64bit fileId assigned.
On the filesystem, files can only be stored in files and buckets.
No initialization required.
type Coord file { x int y int } fn main() { var coord Coord print(coord) }
Run
File literal.
type Person file { Name string Age int } fn main() { print(Person{ Name: "Max", Age: 24, }) }
Run