Hello World!
The classic “hello world” program looks like this in Crystal:
puts "Hello world!"
From this you can see that the main routine is simply the program itself: there’s no need to define a “main” function or something similar.
本文档使用 BookStack 构建