/go-helpers

A golang library for common helper function that I re-implement in many projects, now in a single place.

Primary LanguageGo

go-helpers

A Golang library for common helper function that I re-implement in many projects, but now in a single place.

How to install the package

Run: $ go get github.com/officer47p/go-helpers

How to use the package

package main

import (
	"fmt"

	gohelpers "github.com/officer47p/go-helpers"
)

func main() {
	s := gohelpers.FloatToString(0.022)

	fmt.Println(s)
}

Contribution

If you use a helper function a lot and you're getting tired of copying and pasting the same code in different projects, you can add it here. Just create a PR and submit your changes. Don't forget to write unit tests for your newly added function