1
0
mirror of https://github.com/duke-git/lancet.git synced 2026-02-08 22:52:29 +08:00

Todo: add todo for playground demo of function

This commit is contained in:
dudaodong
2023-01-07 18:27:07 +08:00
parent 2f184907ff
commit 278733d3d1
6 changed files with 14 additions and 11 deletions

View File

@@ -283,6 +283,7 @@ func SplitEx(s, sep string, removeEmptyString bool) []string {
}
// Substring returns a substring of the specified length starting at the specified offset position.
// Play: Todo
func Substring(s string, offset int, length uint) string {
rs := []rune(s)
size := len(rs)