Skip to content

Commit

Permalink
Update example
Browse files Browse the repository at this point in the history
  • Loading branch information
RadhiFadlillah committed Apr 19, 2020
1 parent a495650 commit e22fddd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions examples/basic.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@ func main() {
URL: "https://www.globalwitness.org/en/blog/how-the-rsf-got-their-4x4-technicals-the-open-source-intelligence-techniques-behind-our-sudan-expos%C3%A9",
}

cfg := obelisk.Config{EnableLog: true}
result, _, err := obelisk.Archive(context.Background(), req, cfg)
arc := obelisk.Archiver{EnableLog: true}
arc.Validate()

result, _, err := arc.Archive(context.Background(), req)
checkError(err)

// Create destination file
Expand Down

0 comments on commit e22fddd

Please sign in to comment.