import
keyword
You can use import
to load definitions from another file.
File: greetings.gdnpublic fun say_hello() {
println("Hello!")
}
Example 1import "./greetings.gdn" as g
g::say_hello()
You can also load all the definitions into the current file.
Example 2import "./greetings.gdn"
say_hello()