helper is a collection of utilitarian functions, to facilitate working with strings and slices in Golang.
go get github.com/jeanmorais/helper
Here are some examples of usage.
package main
import (
"fmt"
"github.com/jeanmorais/helper"
)
func main() {
fmt.Println(helper.OnlyNumbers("abc123"))
fmt.Println(helper.OnlyLetters("abc123"))
fmt.Println(helper.RightPad("golang", 8, "!"))
}
123
abc
golang!!