Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ypeckstadt/webpurify-wrapper
Wrapper for WebPurify written in golang
https://github.com/ypeckstadt/webpurify-wrapper
go profanity webpurify wrapper
Last synced: about 2 months ago
JSON representation
Wrapper for WebPurify written in golang
- Host: GitHub
- URL: https://github.com/ypeckstadt/webpurify-wrapper
- Owner: ypeckstadt
- Created: 2020-08-05T09:49:50.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-08-11T01:34:18.000Z (over 4 years ago)
- Last Synced: 2024-06-20T06:32:32.122Z (7 months ago)
- Topics: go, profanity, webpurify, wrapper
- Language: Go
- Homepage:
- Size: 17.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# WebPurify profanity wrapper
Wrapper for WebPurify profanity filter written in golang### Usage example
```go
package mainimport (
"github.com/ypeckstadt/webpurify-wrapper/wrapper"
"github.com/ypeckstadt/webpurify-wrapper/wrapper/request"
"log"
)func main() {
request := request.WebPurifyRequest{
URL: "http://api1-ap.webpurify.com/services/rest/",
APIKey: "*******",
}replaceResponse, err := request.Replace(wrapper.ENGLISH, "fuck this", "**", true, true, true, false)
if err != nil {
log.Print(err)
}log.Print(replaceResponse.Text)
}
```**Output**
```bash
2020/08/11 10:24:56 ******** this
```