UXInteract / task_039 /environment /code /content_safety.go
DojiSum's picture
Publish the current 141-task UXInteract release
ef987bb verified
Raw History Blame Contribute Delete
421 Bytes
package contentsafety
type AuditEntry struct {
ContentType string
Text string
Word string
}
type Filter struct{}
func NewFilter(words []string) *Filter {
return &Filter{}
}
func (f *Filter) SetWords(words []string) {}
func (f *Filter) Validate(contentType string, text string) error {
return nil
}
func (f *Filter) AuditLog() []AuditEntry {
return nil
}