【文件属性】:
文件名称:crystal-playground:试用很棒的Crystal语言http
文件大小:2KB
文件格式:ZIP
更新时间:2021-05-23 14:05:12
Crystal
水晶语言游乐场
在尝试一些东西( )
git clone git@github.com:rilian/crystal-playground.git && cd crystal-playground
气泡排序
crystal bubble-sort.cr
或者
crystal build bubble-sort.cr --release && ./bubble-sort
你好,世界
crystal hello-world.cr
或者
crystal build hello-world.cr --release && ./hello-world
HTTP服务器和客户端
在一个终端选项卡中, crystal http-server.cr在另一个终端选项卡中, crystal http-client.cr
或者
在一个终端选项卡中, crystal build http-server
【文件预览】:
crystal-playground-master
----.gitignore(16B)
----README.md(750B)
----http-client.cr(247B)
----http-server.cr(253B)
----hello-world.cr(20B)
----bubble-sort.cr(328B)