In any Golang boolean checking statement, you can use || operator instead of OR:
package main
import "fmt"
func main() {
isEmpty := true
isValid := true
if !isValid || isEmpty {
fmt.Println("This email address is not acceptable!")
}
}
In any Golang boolean checking statement, you can use || operator instead of OR:
package main
import "fmt"
func main() {
isEmpty := true
isValid := true
if !isValid || isEmpty {
fmt.Println("This email address is not acceptable!")
}
}