Skip to content

Commit

Permalink
Improve getting started example
Browse files Browse the repository at this point in the history
  • Loading branch information
teutat3s committed Oct 16, 2020
1 parent c78c821 commit f04a9cf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ go get github.com/blushft/go-diagrams
Create a diagram:

```golang
d, err := diagram.New(diagram.Label("my-diagram"), diagram.Filename("diagram"))
d, err := diagram.New(diagram.Label("my-diagram"), diagram.Filename("diagram-example"))
if err != nil {
log.Fatal(err)
}
Expand All @@ -81,5 +81,6 @@ Go-Diagrams will create a folder in the current working directory with the graph
Create an ouput image with any graphviz compatible renderer:

```sh
dot -Tpng diagram.dot > diagram.png
./diagram-example
dot -Tpng go-diagrams/go-diagram.dot > diagram-example.png
```

0 comments on commit f04a9cf

Please sign in to comment.