An open API service indexing awesome lists of open source software.

https://github.com/terrextech/go-commonutils

A set of convenient utilities.
https://github.com/terrextech/go-commonutils

go golang utility-library

Last synced: 9 months ago
JSON representation

A set of convenient utilities.

Awesome Lists containing this project

README

          

Common-Utils Go-Package
-----

This package provides some convenience utilities. New utilities will be added as required.

**[Go Docs][0]**.

### Current Utilities:

* **env**
* [ValidateEnv][8]

* **errors**
* [ErrorStackTrace][7]

* **float64**
* [AssertInt64][9]

* **int64**
* [AssertInt64][10]

* **slices**
* [AreElementsInSlice][1]
* [AreElementsInSliceStrict][2]
* [IndexInSlice][3]
* [IsElementInSlice][4]

* **strings**
* [ParseHosts][5]
* [StandardizeSpaces][6]

[0]: https://godoc.org/github.com/TerrexTech/go-commonutils/commonutil
[1]: https://godoc.org/github.com/TerrexTech/go-commonutils/commonutil#AreElementsInSlice
[2]: https://godoc.org/github.com/TerrexTech/go-commonutils/commonutil#AreElementsInSliceStrict
[3]: https://godoc.org/github.com/TerrexTech/go-commonutils/commonutil#IndexInSlice
[4]: https://godoc.org/github.com/TerrexTech/go-commonutils/commonutil#IsElementInSlice
[5]: https://godoc.org/github.com/TerrexTech/go-commonutils/commonutil#ParseHosts
[6]: https://godoc.org/github.com/TerrexTech/go-commonutils/commonutil#StandardizeSpaces
[7]: https://godoc.org/github.com/TerrexTech/go-commonutils/commonutil#ErrorStackTrace
[8]: https://godoc.org/github.com/TerrexTech/go-commonutils/commonutil#ValidateEnv
[9]: https://godoc.org/github.com/TerrexTech/go-commonutils/commonutil#AssertFloat64
[10]: https://godoc.org/github.com/TerrexTech/go-commonutils/commonutil#AssertInt64