File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ It consists of 2 separate entities: the bindings for the calls to libddwaf, and
66An 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
1212var 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
4141Originally this project was only here to provide CGO Wrappers to the calls to libddwaf.
4242But with the appearance of ` ddwaf_object ` tree like structure,
You can’t perform that action at this time.
0 commit comments