Skip to content

Commit

Permalink
docs: more complete example
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdecaf committed Feb 12, 2024
1 parent 1a7a330 commit 75a4341
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,15 @@ xmlq is a Go library for pretty printing xml and masking element values.
## Usage

```go
var xmlData io.Reader
import (
"github.com/adamdecaf/xmlq/pkg/xmlq"
)

output, err := MarshalIndent(xmlData, &Options{
var (
xmlData io.Reader
)

output, err := xmlq.MarshalIndent(xmlData, &Options{
Indent: " ", // two spaces
Masks: []Mask{
{
Expand Down

0 comments on commit 75a4341

Please sign in to comment.