https://github.com/lusingander/kasane
String overlay library for Go
https://github.com/lusingander/kasane
go string
Last synced: 7 months ago
JSON representation
String overlay library for Go
- Host: GitHub
- URL: https://github.com/lusingander/kasane
- Owner: lusingander
- License: mit
- Created: 2023-12-02T02:06:02.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-12-05T00:48:10.000Z (about 1 year ago)
- Last Synced: 2025-07-04T08:02:34.492Z (7 months ago)
- Topics: go, string
- Language: Go
- Homepage:
- Size: 129 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://pkg.go.dev/github.com/lusingander/kasane)
# kasane
String overlay library for Go

## Usage
```go
base := ".......\n.......\n.......\n.......\n......."
s := "xxx\nyyy\nzzz"
out := kasane.OverlayString(base, s, 1, 3)
fmt.Println(out)
// Output:
// .......
// ...xxx.
// ...yyy.
// ...zzz.
// .......
```
## License
MIT