diff options
author | Artur Dryomov <artur.dryomov@gmail.com> | 2019-12-28 02:20:15 +0300 |
---|---|---|
committer | alandonovan <adonovan@google.com> | 2019-12-27 18:20:15 -0500 |
commit | caa3e9aa50080802185728ab0d08875959c50f16 (patch) | |
tree | c65fd124766a8aa01e5eb3cdbcd1ed995ee36a2b | |
parent | 9fcb808a6221c80a0ffa643b0be37b7d86c1d6cd (diff) | |
download | starlark-go-caa3e9aa50080802185728ab0d08875959c50f16.tar.gz |
Add syntax highlighting to the readme file (#255)
-rw-r--r-- | README.md | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -57,7 +57,7 @@ $ go get -u go.starlark.net/cmd/starlark Run the interpreter: -``` +```console $ cat coins.star coins = { 'dime': 10, @@ -75,7 +75,7 @@ By value: penny, nickel, dime, quarter Interact with the read-eval-print loop (REPL): -``` +```pycon $ starlark >>> def fibonacci(n): ... res = list(range(n)) @@ -92,7 +92,7 @@ When you have finished, type `Ctrl-D` to close the REPL's input stream. Embed the interpreter in your Go program: -``` +```go import "go.starlark.net/starlark" // Execute Starlark program in a file. |