Skip to content

Commit

Permalink
doc: switch to v3 (#96)
Browse files Browse the repository at this point in the history
`sed -i 's/v2/v3' README.md`

Signed-off-by: Eliott Bouhana <[email protected]>
  • Loading branch information
eliottness authored May 6, 2024
1 parent 639e12b commit 6fba19a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ It consists of 2 separate entities: the bindings for the calls to libddwaf, and
An example usage would be:

```go
import waf "github.com/DataDog/go-libddwaf/v2"
import waf "github.com/DataDog/go-libddwaf/v3"

//go:embed
var ruleset []byte
Expand All @@ -15,12 +15,12 @@ func main() {
var parsedRuleset any

if err := json.Unmarshal(ruleset, &parsedRuleset); err != nil {
return 1
panic(err)
}

wafHandle, err := waf.NewHandle(parsedRuleset, "", "")
if err != nil {
return 1
panic(err)
}

defer wafHandle.Close()
Expand All @@ -36,7 +36,7 @@ func main() {
}
```

The API documentation details can be found on [pkg.go.dev](https://pkg.go.dev/github.com/DataDog/go-libddwaf/v2).
The API documentation details can be found on [pkg.go.dev](https://pkg.go.dev/github.com/DataDog/go-libddwaf/v3).

Originally this project was only here to provide CGO Wrappers to the calls to libddwaf.
But with the appearance of `ddwaf_object` tree like structure,
Expand Down

0 comments on commit 6fba19a

Please sign in to comment.