Categorygithub.com/lusingander/kasane
modulepackage
0.0.0-20231207092011-d7af4a4cf7cf
Repository: https://github.com/lusingander/kasane.git
Documentation: pkg.go.dev

# README

Go Reference

kasane

String overlay library for Go

Usage

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

# Packages

No description provided by the author

# Functions

OverlayString returns a string with the s string overlaid on the base string.
WithPadding sets the padding width.

# Type aliases

No description provided by the author