Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(69)

Side by Side Diff: packages/yaml/README.md

Issue 1400473008: Roll Observatory packages and add a roll script (Closed) Base URL: git@github.com:dart-lang/observatory_pub_packages.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « packages/yaml/LICENSE ('k') | packages/yaml/benchmark/benchmark.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 A parser for [YAML](http://www.yaml.org/).
2
3 Use `loadYaml` to load a single document, or `loadYamlStream` to load a
4 stream of documents. For example:
5
6 ```dart
7 import 'package:yaml/yaml.dart';
8
9 main() {
10 var doc = loadYaml("YAML: YAML Ain't Markup Language");
11 print(doc['YAML']);
12 }
13 ```
14
15 This library currently doesn't support dumping to YAML. You should use
16 `JSON.encode` from `dart:convert` instead:
17
18 ```dart
19 import 'dart:convert';
20 import 'package:yaml/yaml.dart';
21
22 main() {
23 var doc = loadYaml("YAML: YAML Ain't Markup Language");
24 print(JSON.encode(doc));
25 }
26 ```
OLDNEW
« no previous file with comments | « packages/yaml/LICENSE ('k') | packages/yaml/benchmark/benchmark.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698