Skip to content

Commit

Permalink
Update example in README
Browse files Browse the repository at this point in the history
  • Loading branch information
robert-ancell committed Jun 3, 2021
1 parent 3d6fa9b commit 5611366
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@ A parser for [Appstream](https://www.freedesktop.org/software/appstream) files.
```dart
import 'package:appstream/appstream.dart';
var doc = loadAppstreamComponents();
print (doc);
var pool = AppstreamPool();
await pool.load();
for (var component in pool.components) {
print(pool.components);
}
```

## Contributing to appstream.dart
Expand Down

0 comments on commit 5611366

Please sign in to comment.