Skip to content

Commit 6fba19a

Browse files
authored
doc: switch to v3 (#96)
`sed -i 's/v2/v3' README.md` Signed-off-by: Eliott Bouhana <[email protected]>
1 parent 639e12b commit 6fba19a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ It consists of 2 separate entities: the bindings for the calls to libddwaf, and
66
An example usage would be:
77

88
```go
9-
import waf "github.com/DataDog/go-libddwaf/v2"
9+
import waf "github.com/DataDog/go-libddwaf/v3"
1010

1111
//go:embed
1212
var ruleset []byte
@@ -15,12 +15,12 @@ func main() {
1515
var parsedRuleset any
1616

1717
if err := json.Unmarshal(ruleset, &parsedRuleset); err != nil {
18-
return 1
18+
panic(err)
1919
}
2020

2121
wafHandle, err := waf.NewHandle(parsedRuleset, "", "")
2222
if err != nil {
23-
return 1
23+
panic(err)
2424
}
2525

2626
defer wafHandle.Close()
@@ -36,7 +36,7 @@ func main() {
3636
}
3737
```
3838

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

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

0 commit comments

Comments
 (0)