Skip to content

bauenlabs/rivet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rivet ➕

Efficient string concatenation package. (Inspired directly by this article)

Installation

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"

Usage

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.