func RCValidator(input string) error {
	if input != "" {
		if !strings.Contains(input, "=") {
			return errors.New("should be of the format k1=v1")
		}
	}
	return nil
}
RCValidator validates whether input is of the form k1=v1,k2=v2
package validators
import (
	"encoding/json"
	"errors"
	"fmt"
	"net"
	"strconv"
	"strings"
)
func IntValidator(input string) error {
	if input != "" {
		_, err := strconv.ParseFloat(input, 64)
		if err != nil {
			return errors.New("invalid number")
		}
	}
	return nil
}
func StringValidator(input string) error {
	if input == "" {
		_, err := strconv.ParseFloat(input, 64)
		if err == nil {
			return errors.New("not a string")
		}
	}
	return nil
}