Skip to content

jimmyfrasche/slicefmt

Repository files navigation

slicefmt

Go Reference

go get github.com/jimmyfrasche/slicefmt

Package slicefmt helps format slices.

The Config describes how to format slices but not their elements. Given a Config, cfg, and a slice, vs, it can be used as such

fmt.Printf("example: %q\n", cfg.Fmt(vs))

In this example the %q verb is applied to each of the elements of vs while cfg handles how to print separators between elements, among other things.


Automatically generated by autoreadme

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages