diff --git a/content/docs/tutorials/coreruleset.md b/content/docs/tutorials/coreruleset.md index 53b735f..78a4cbc 100644 --- a/content/docs/tutorials/coreruleset.md +++ b/content/docs/tutorials/coreruleset.md @@ -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) } diff --git a/content/docs/tutorials/quick-start.md b/content/docs/tutorials/quick-start.md index b6a59f9..2c0e0fd 100644 --- a/content/docs/tutorials/quick-start.md +++ b/content/docs/tutorials/quick-start.md @@ -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) } ``` @@ -158,4 +158,4 @@ func main() { fmt.Println("Server is running. Listening port: 8090") log.Fatal(http.ListenAndServe(":8090", nil)) } -``` \ No newline at end of file +```