Skip to content

Commit

Permalink
Add example (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
komuw authored Mar 2, 2024
1 parent 6b792f6 commit 88918ad
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 36 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

Most recent version is listed first.

# v0.0.24
- Add example: https://github.com/komuw/kama/pull/77

# v0.0.23
- Make stacktrace colorization configurable: https://github.com/komuw/kama/pull/76

Expand Down
8 changes: 8 additions & 0 deletions e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -478,3 +478,11 @@ func TestAllAboutInterfaces(t *testing.T) {
}
})
}

func ExampleDirp() {
req, _ := http.NewRequest("GET", "https://example.com", nil)
req.Header.Set("Content-Type", "application/octet-stream")
req.AddCookie(&http.Cookie{Name: "hello", Value: "world"})

kama.Dirp(req, kama.Config{NoColor: true})
}
36 changes: 0 additions & 36 deletions example_test.go

This file was deleted.

0 comments on commit 88918ad

Please sign in to comment.