forked from fox-archives/volant
-
Notifications
You must be signed in to change notification settings - Fork 4
Hello World
LordPos edited this page Aug 31, 2020
·
2 revisions
import "io.vo";
func main() i32 {
io.println("Hello World!");
return 0;
};
-
import "io.vo";
tells the compiler to import theio.vo
file which contains theprintln
function. - The execution of a volant program starts from the
main()
function, therefore, it is necessary to define amain
function in your code. -
io.println
is a function that takes the stringHello World!
as input and prints it to the console. -
return 0;
stops the execution of the program with status code 0.