Skip to content

Commit 554593a

Browse files
committed
seems that here we almost done
1 parent 005ffc0 commit 554593a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,13 @@ separator := ","
126126
result := stringFormatter.SliceToString(&slice, &separator)
127127
```
128128

129+
`SliceSameTypeToString` - function that converts typed slice to line with separator
130+
```go
131+
separator := ":"
132+
numericSlice := []int{100, 200, 400, 800}
133+
result := stringFormatter.SliceSameTypeToString(&numericSlice, &separator)
134+
```
135+
129136
#### 2.4 Benchmarks of the SliceToString function
130137

131138
`sf` is rather fast then `fmt` 2.5 times (250%) faster on slice with 20 items, see benchmark:

0 commit comments

Comments
 (0)