Skip to content

Commit

Permalink
Fix identation
Browse files Browse the repository at this point in the history
  • Loading branch information
sa6mwa committed Mar 18, 2023
1 parent 675753f commit 38dbe38
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,30 +100,30 @@ defer reader.Close() // Stash closes the writer, it's an io.ReadCloser
errch := make(chan error)

go func() {
defer close(errch)
if err := anystore.Unstash(&anystore.StashConfig{
Reader: reader,
GZip: true,
Key: "secret",
Thing: &receivedGreeting,
}); err != nil {
errch <- err
}
errch <- nil
defer close(errch)
if err := anystore.Unstash(&anystore.StashConfig{
Reader: reader,
GZip: true,
Key: "secret",
Thing: &receivedGreeting,
}); err != nil {
errch <- err
}
errch <- nil
}()

if err := anystore.Stash(&anystore.StashConfig{
Writer: writer,
GZip: true,
Key: "secret",
Thing: &greeting,
Writer: writer,
GZip: true,
Key: "secret",
Thing: &greeting,
}); err != nil {
log.Fatal(err)
log.Fatal(err)
}

err := <-errch
if err != nil {
log.Fatal(err)
log.Fatal(err)
}

fmt.Println(receivedGreeting)
Expand Down

0 comments on commit 38dbe38

Please sign in to comment.