package main import "fmt" func main() { s := "" if len(s) == 0 { fmt.Println("string ist leer") } if s == "" { fmt.Println("string ist leer") } }