print
: for printing the text to the output stream without a newline.println
: same as print
but newline appended automatically.eprint
: same as print
but the output goes to error stream (stderr).eprintln
: same as println
but the output goes to error stream (stderr).panic
: outputs and exits from the program.Hello WorldHello V
\n
.\n
then you can use println
instead.//
and multi-line comments /* */
. They should be used for documenting the code for letting the other users know how the code works. It can also be used for temporarily commenting the code which has to be used later on.hello.v
and see what happens.