https://github.com/grokify/mogo
A collection of small DRY Go utilities to make life easier. DRY = Don't Repeat Yourself.
https://github.com/grokify/mogo
go golang utilities utility-library
Last synced: about 1 month ago
JSON representation
A collection of small DRY Go utilities to make life easier. DRY = Don't Repeat Yourself.
- Host: GitHub
- URL: https://github.com/grokify/mogo
- Owner: grokify
- License: mit
- Created: 2015-02-12T09:22:29.000Z (over 11 years ago)
- Default Branch: main
- Last Pushed: 2026-04-26T18:22:15.000Z (about 1 month ago)
- Last Synced: 2026-04-26T20:26:56.374Z (about 1 month ago)
- Topics: go, golang, utilities, utility-library
- Language: Go
- Homepage:
- Size: 3.87 MB
- Stars: 68
- Watchers: 2
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.json
- License: LICENSE
Awesome Lists containing this project
- awesome-golang-repositories - mogo
README
MoGo
====
[![Go CI][go-ci-svg]][go-ci-url]
[![Go Lint][go-lint-svg]][go-lint-url]
[![Go SAST][go-sast-svg]][go-sast-url]
[![Go Report Card][goreport-svg]][goreport-url]
[![Docs][docs-godoc-svg]][docs-godoc-url]
[![Visualization][viz-svg]][viz-url]
[![License][license-svg]][license-url]
[go-ci-svg]: https://github.com/grokify/mogo/actions/workflows/go-ci.yaml/badge.svg?branch=main
[go-ci-url]: https://github.com/grokify/mogo/actions/workflows/go-ci.yaml
[go-lint-svg]: https://github.com/grokify/mogo/actions/workflows/go-lint.yaml/badge.svg?branch=main
[go-lint-url]: https://github.com/grokify/mogo/actions/workflows/go-lint.yaml
[go-sast-svg]: https://github.com/grokify/mogo/actions/workflows/go-sast-codeql.yaml/badge.svg?branch=main
[go-sast-url]: https://github.com/grokify/mogo/actions/workflows/go-sast-codeql.yaml
[goreport-svg]: https://goreportcard.com/badge/github.com/grokify/mogo
[goreport-url]: https://goreportcard.com/report/github.com/grokify/mogo
[docs-godoc-svg]: https://pkg.go.dev/badge/github.com/grokify/mogo
[docs-godoc-url]: https://pkg.go.dev/github.com/grokify/mogo
[viz-svg]: https://img.shields.io/badge/visualizaton-Go-blue.svg
[viz-url]: https://mango-dune-07a8b7110.1.azurestaticapps.net/?repo=grokify%2Fmogo
[loc-svg]: https://tokei.rs/b1/github/grokify/mogo
[repo-url]: https://github.com/grokify/mogo
[license-svg]: https://img.shields.io/badge/license-MIT-blue.svg
[license-url]: https://github.com/grokify/mogo/blob/master/LICENSE
## Overview
The `mogo` (pronounced "Mo Go" for "More Go") package provides a collection of Go utilities for common tasks.
Go is a small language which is useful from a development and maintenance
perspective but it can result in common tasks being more verbose than other
languages where there are more productivity methods. The `mogo` package's
goal is to provide wrappers for common tasks in the same spirit of `io/ioutil`
to make programming Go a bit faster.
In terms of scope, `mogo` is designed to cover all common areas, with a move to fewer dependencies.
See the following modules for extended functionality (with more dependencies):
* GoAuth - [github.com/grokify/goauth](https://github.com/grokify/goauth)
* GoCharts - [github.com/grokify/gocharts](https://github.com/grokify/gocharts)
* GoPhoneNumbers - [github.com/grokify/gophonenumbers](https://github.com/grokify/gophonenumbers)
## Documentation
Documentation is provided using godoc and available on [GoDoc.org](https://godoc.org/github.com/grokify/mogo).
## Installation
```bash
$ go get github.com/grokify/mogo/...
```
## SBOM
The SBOM is in the file [`SBOM.spdx.json`]. It is created using GitHub's built-in SBOM feature with the following additions:
1. It is converted to indented JSON for easier reading.
1. The `packages[0].downloadLocation` value as the commit hash added per [https://spdx.github.io/spdx-spec/v2.3/package-information/](downloadLocation).
## Credits
See [`CREDITS`](CREDITS.md)
## Contributing
Features, Issues, and Pull Requests are always welcome.
To contribute:
1. Fork it ( http://github.com/grokify/mogo/fork )
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request
Please report issues and feature requests on [Github](https://github.com/grokify/mogo).