Skip to content

Commit 787cad8

Browse files
committed
readme: add usage for Fdump(w io.Writer, vs ...any)
1 parent 588e564 commit 787cad8

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ package main
5959
6060
import (
6161
"fmt"
62+
"os"
6263
"github.com/goforj/godump"
6364
)
6465
@@ -94,6 +95,9 @@ func main() {
9495
// HTML for web UI output
9596
html := godump.DumpHTML(user)
9697
fmt.Println("html", html)
98+
99+
// Write to any io.Writer (e.g. file, buffer, logger)
100+
godump.Fdump(os.Stderr, user)
97101
}
98102
```
99103

0 commit comments

Comments
 (0)