1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/65465498-soul-esview

Клонировать/Скачать
methods.md 569
Копировать Редактировать Web IDE Исходные данные Просмотреть построчно История
Ghost Отправлено 04.07.2016 11:59 a70a8d1

Defining Methods

Methods allow you to smoothly display code examples in different languages.

{% method %}

My first method

My first method exposes how to print a message in JavaScript and Go.

{% sample lang="js" %} Here is how to print a message to stdout using JavaScript.

console.log('My first method');

{% sample lang="go" %} Here is how to print a message to stdout using Go.

fmt.Println("My first method")

{% common %} Whatever language you are using, the result will be the same.

$ My first method

{% endmethod %}

Опубликовать ( 0 )

Вы можете оставить комментарий после Вход в систему

1
https://api.gitlife.ru/oschina-mirror/65465498-soul-esview.git
git@api.gitlife.ru:oschina-mirror/65465498-soul-esview.git
oschina-mirror
65465498-soul-esview
65465498-soul-esview
master