• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Kotlin/kotlin-by-example: The sources of Kotlin by Example.

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

Kotlin/kotlin-by-example

开源软件地址(OpenSource Url):

https://github.com/Kotlin/kotlin-by-example

开源编程语言(OpenSource Language):


开源软件介绍(OpenSource Introduction):

Kotlin by Example

This is sources of Kotlin Examples.

How to make example

Create markdown file in examples folder.

# Header

Lorem ipsum dolor sit `amet`, consectetur adipisicing elit. Aspernatur, molestias, velit?

`​`​`run-kotlin
fun main(args: Array<String>) {
    println("Hello from template")
}
`​`​`

1. Epsum `factorial` non deposit quid pro quo hic escorol.
2. Souvlaki ignitus carborundum e pluribus unum.
3. Lorem ipsum dolor `sit` amet, consectetur adipisicing elit. Dicta ipsa ipsam odio officiis repellat suscipit unde vel voluptatibus. Dolorum esse eum fugit nihil provident quae quaerat quidem reiciendis, repudiandae ullam.
4. Quote meon an `estimate` et non interruptus stadium.
5. Quote meon an `estimate`


| Tables        | Are           | Cool  |
| ------------- |:-------------:| -----:|
| col 3 is      | right-aligned | 10000 |
| col 2 is      | centered      |   100 |
| zebra stripes | are neat      |    11 |

### Links

See more information in our [website](https://kotlinlang.org/)

Render as:

screen shot 2018-08-17 at 2 48 04 pm

How to use different attributes on runnable examples see Kotlin Playground documentation.

Guidelines

  1. Try and keep text to a minimum. Remember, this site is not trying to replace documentation nor necessarily describe all edge cases or dive into details. Rule of thumb should be a single paragraph introducing the example. Rest should be line annotations.
  2. Use 4 spaces for tabs.
  3. Make sure examples compile and also have some output when they run.

How to contribute

  1. Fork & clone our repository.
  2. Create new chapter with examples or add new example to existing chapter.
    1. Create chapter folder in examples folder.
    2. Create description.md file in your chapter and set a header — it's a chapter name!
    3. Create examples files.

Path to your example will be https://host/byExample/chapter/myExample1

Have a nice Kotlin!




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap