Skip to content

Commit

Permalink
implemented options params with object initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
pcpratheesh committed Mar 30, 2023
2 parents a383d3e + d5d3fbf commit ff76497
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ if err != nil {
- *WithKeepPrefixChar(bool)*: If you want to Kept the prefix Character (eg : F****)
- *WithKeepSuffixChar(bool)*: If you want to Kept the suffix Character (eg : ****K)

## Example
```go
detector := NewDetector(
gocensorword.WithCensorReplaceChar("*"),
Expand All @@ -81,4 +80,4 @@ Contributions to the Profanity Filter package are welcome and encouraged! If you


## License
The Profanity Filter package is licensed under the MIT License. See the LICENSE file for more information.
The Profanity Filter package is licensed under the MIT License. See the LICENSE file for more information.

0 comments on commit ff76497

Please sign in to comment.