An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

[![Go Reference](https://pkg.go.dev/badge/github.com/lusingander/kasane.svg)](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