package main func main() { s := "hello" if len(s) > 0 && s[0] == 'h' { println("ok") } }