Skip to content

Commit

Permalink
modify doc Waf->WAF (#311)
Browse files Browse the repository at this point in the history
* Update coreruleset.md

modify Waf->WAF

* Update quick-start.md

modify Waf->WAF
  • Loading branch information
samwafgo authored Nov 21, 2024
1 parent abaee4f commit 0c21726
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions content/docs/tutorials/coreruleset.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ For example:

```go
func initCoraza(){
cfg := coraza.NewWafConfig()
cfg := coraza.NewWAFConfig()
.WithDirectivesFromFile("coraza.conf")
.WithDirectivesFromFile("coreruleset/crs-setup.conf.example")
.WithDirectivesFromFile("coreruleset/rules/*.conf")
waf, err := coraza.NewWaf(cfg)
waf, err := coraza.NewWAF(cfg)
if err != nil {
panic(err)
}
Expand Down
6 changes: 3 additions & 3 deletions content/docs/tutorials/quick-start.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ import (
"github.com/corazawaf/coraza/v3"
)
func initCoraza(){
cfg := coraza.NewWafConfig()
waf, err := coraza.NewWaf(cfg)
cfg := coraza.NewWAFConfig()
waf, err := coraza.NewWAF(cfg)
}
```

Expand Down Expand Up @@ -158,4 +158,4 @@ func main() {
fmt.Println("Server is running. Listening port: 8090")
log.Fatal(http.ListenAndServe(":8090", nil))
}
```
```

0 comments on commit 0c21726

Please sign in to comment.