/helper

A strings/slices manipulation helper in Go.

Primary LanguageGo

helper

Build Status codecov Go Report Card Documentation

helper is a collection of utilitarian functions, to facilitate working with strings and slices in Golang.

Install

go get github.com/jeanmorais/helper

Usage

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!!