Select Git revision
-
Md. Alim Ul Karim authored
# v0.6.8 - Integration Test Helper (Validators, SliceValidators, Refactoring, ReflectSlice functions) - [x] Validators - [x] SliceValidators - [x] Refactoring - [x] ReflectSlice functions See merge request !55
Md. Alim Ul Karim authored# v0.6.8 - Integration Test Helper (Validators, SliceValidators, Refactoring, ReflectSlice functions) - [x] Validators - [x] SliceValidators - [x] Refactoring - [x] ReflectSlice functions See merge request !55
RemoveMany.go 340 B
package stringutil
import (
"strings"
"gitlab.com/evatix-go/core/constants"
)
func RemoveMany(
content string,
removeRequests ...string,
) string {
if content == "" {
return content
}
for _, remove := range removeRequests {
content = strings.ReplaceAll(
content,
remove,
constants.EmptyString)
}
return content
}