Skip to content

Commit

Permalink
modify readme
Browse files Browse the repository at this point in the history
  • Loading branch information
ddddddO committed May 21, 2022
1 parent b8e9192 commit e3ffdaf
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ package main

import (
"fmt"
"os"

g "github.com/ddddddO/gdag"
)
Expand Down Expand Up @@ -58,8 +59,8 @@ func main() {

uml, err := dag.UML()
if err != nil {
fmt.Println(err)
return
fmt.Fprintln(os.Stderr, err)
os.Exit(1)
}
fmt.Println(uml)
}
Expand Down
13 changes: 7 additions & 6 deletions _example/dinner/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package main

import (
"fmt"
"os"

g "github.com/ddddddO/gdag"
)
Expand Down Expand Up @@ -31,26 +32,26 @@ func main() {

uml, err := dag.UML()
if err != nil {
fmt.Println(err)
return
fmt.Fprintln(os.Stderr, err)
os.Exit(1)
}
fmt.Println(uml)

fmt.Println()

mermaid, err := dag.Mermaid()
if err != nil {
fmt.Println(err)
return
fmt.Fprintln(os.Stderr, err)
os.Exit(1)
}
fmt.Println(mermaid)

fmt.Println()

checklist, err := dag.CheckList()
if err != nil {
fmt.Println(err)
return
fmt.Fprintln(os.Stderr, err)
os.Exit(1)
}
fmt.Println(checklist)
}
Expand Down

0 comments on commit e3ffdaf

Please sign in to comment.