feat: update docker alpine package mirror (#1924)

* feat: update docker alpine package mirror

* chore: format code
This commit is contained in:
Kevin Wan
2022-05-23 09:13:21 +08:00
committed by GitHub
parent f1fdd55b38
commit 72ebbb9774
3 changed files with 5 additions and 2 deletions

View File

@@ -103,7 +103,8 @@ func Reverse(s string) string {
return string(runes)
}
// Substr returns runes between start and stop [start, stop) regardless of the chars are ascii or utf8.
// Substr returns runes between start and stop [start, stop)
// regardless of the chars are ascii or utf8.
func Substr(str string, start, stop int) (string, error) {
rs := []rune(str)
length := len(rs)