Skip to content

Commit 89bc33d

Browse files
committed
Extended readme
1 parent baf2dbc commit 89bc33d

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import ( "github.com/linkdotnet/golang-stringbuilder" )
1919

2020
## Quickstart
2121

22-
The API is derived from the C# `StringBuilder`. You can easily append strings or single runes.
22+
The API derives from the C# `StringBuilder`. You can easily append strings or single runes.
2323

2424
```golang
2525
func main() {
@@ -29,4 +29,11 @@ func main() {
2929
sb.Append("World")
3030
fmt.Println(sb.ToString())
3131
}
32+
```
33+
34+
Also more advanced use cases where you want to insert an arbitrary word at an arbitrary position are possible.
35+
```golang
36+
sb := NewStringBuilderFromString("Hello World")
37+
sb.Insert(5, " my dear")
38+
output := sb.ToString() // Hello my dear World
3239
```

0 commit comments

Comments
 (0)