Efficient string concatenation package. (Inspired directly by this article)
As with any Go package, rivet can be installed via go get
:
go get github.com/bauenlabs/rivet
And then import in your application:
import "github.com/bauenlabs/rivet"
This package exports a method, Concat
, which takes an unlimited number of strings, concatenates them together, and returns the resulting string.
Example usage:
s := rivet.Concat("a", "b", "c"); // s = abc.