Skip to content

Hello World

LordPos edited this page Aug 31, 2020 · 2 revisions
import "io.vo";

func main() i32 {
    io.println("Hello World!");
    return 0;
};

How it works:

  • import "io.vo"; tells the compiler to import the io.vo file which contains the println function.
  • The execution of a volant program starts from the main() function, therefore, it is necessary to define a main function in your code.
  • io.println is a function that takes the string Hello World! as input and prints it to the console.
  • return 0; stops the execution of the program with status code 0.
Clone this wiki locally