HostPort use uint16 datatype now

This commit is contained in:
zam 2025-04-03 15:19:21 +02:00
parent 0a58bcc0ef
commit bcf2defd8a
5 changed files with 26 additions and 19 deletions

View file

@ -53,6 +53,10 @@ func ValidateNotEmpty(value any, name string) []string {
if v.IsZero() {
isValid = false
}
case uint16:
if v == 0 {
isValid = false
}
case int64:
if v == 0 {
isValid = false