encoding/dot: make all simple graph marshalling strict

Also fix bug in order of emitting strict keyword.
This commit is contained in:
Dan Kortschak
2018-10-27 17:42:20 +10:30
committed by Dan Kortschak
parent cc0c958a30
commit 609b9d63e8
6 changed files with 56 additions and 58 deletions

View File

@@ -32,7 +32,7 @@ func ExamplePorter() {
toPort: "p2",
})
result, _ := dot.Marshal(g, "", "", " ", true)
result, _ := dot.Marshal(g, "", "", " ")
fmt.Print(string(result))
// Output: