A hello program example

The following is the standard Ballerina hello program that shows how to print. Create a file using vim and run the hello.bal command:

//#vim hello.bal

//Ballerina base library for Input/Output messages
import ballerina/io;

// function main()
public function main()
{
io:println("You are reading PacktPub Hello example! ");
io:println("-------- Program End -------");
}

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.117.227.194