func SubString(str string, begin, end int) string { rs := []rune(str) length := len(rs) if begin < 0 { begin = 0 } if begin >= length { return "" } if end > length { return string(rs[begin:]) } return string(rs[begin:end]) }