Skip to content

Latest commit

 

History

History
19 lines (11 loc) · 650 Bytes

README.md

File metadata and controls

19 lines (11 loc) · 650 Bytes

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