Yup. lets use strings.HasSuffix here. Much cleaner