Delete methods.md
This commit is contained in:
parent
c11078f924
commit
a04714ec0c
30
methods.md
30
methods.md
|
@ -1,30 +0,0 @@
|
||||||
# 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.
|
|
||||||
|
|
||||||
```js
|
|
||||||
console.log('My first method');
|
|
||||||
```
|
|
||||||
|
|
||||||
{% sample lang="go" %}
|
|
||||||
Here is how to print a message to `stdout` using Go.
|
|
||||||
|
|
||||||
```go
|
|
||||||
fmt.Println("My first method")
|
|
||||||
```
|
|
||||||
|
|
||||||
{% common %}
|
|
||||||
Whatever language you are using, the result will be the same.
|
|
||||||
|
|
||||||
```bash
|
|
||||||
$ My first method
|
|
||||||
```
|
|
||||||
{% endmethod %}
|
|
Loading…
Reference in New Issue