Description
Go team released Go 1.18 beta recently with support for Generics(a.k.a type parameters). This package provides much needed and frequently used utility functions for generic data types.
GOUF alternatives and similar packages
Based on the "Utilities" category.
Alternatively, view gouf alternatives based on common mentions on social networks and blogs.
-
项目文档
🚀Vite+Vue3+Gin的开发基础平台,支持TS和JS混用。它集成了JWT鉴权、权限管理、动态路由、显隐可控组件、分页封装、多点登录拦截、资源权限、上传下载、代码生成器【可AI辅助】、表单生成器和可配置的导入导出等开发必备功能。 -
excelize
Go language library for reading and writing Microsoft Excel™ (XLAM / XLSM / XLSX / XLTM / XLTX) spreadsheets -
Kopia
Cross-platform backup tool for Windows, macOS & Linux with fast, incremental backups, client-side end-to-end encryption, compression and data deduplication. CLI and GUI included. -
goreporter
A Golang tool that does static analysis, unit testing, code review and generate code quality report. -
create-go-app
✨ A complete and self-contained solution for developers of any qualification to create a production-ready project with backend (Go), frontend (JavaScript, TypeScript) and deploy automation (Ansible, Docker) by running only one CLI command. -
EaseProbe
A simple, standalone, and lightweight tool that can do health/status checking, written in Go. -
filetype
Fast, dependency-free Go package to infer binary file types based on the magic numbers header signature -
boilr
:zap: boilerplate template manager that generates files or directories from template repositories -
beaver
💨 A real time messaging system to build a scalable in-app notifications, multiplayer games, chat apps in web and mobile apps. -
go-underscore
Helpfully Functional Go - A useful collection of Go utilities. Designed for programmer happiness.
InfluxDB - Purpose built for real-time analytics at any scale.
Do you think we are missing an alternative of GOUF or a related project?
Popular Comparisons
README
GOUF - Utility Functions for generic types
Go team released Go 1.18 beta recently with support for Generics(a.k.a type parameters). This package provides much needed and frequently used utility functions for generic data types.
Supported Operations
Slices
- All - Check if all elements in a slice satisfy a condition
- Any - Check if any element in a slice satisfies a condition
- Check - Check if slice can accept a given indices
- Count - count all elements in a slice that satisfy a condition
- Delete - Delete element at given index
- DeleteUnordered - Delete element at given index, without preserving order(efficient than Delete)
- DeleteFn - Delete element that satisfies a condition
- DeletePlaces - Delete elements at given indices
- Filter - Filter elements in a slice that satisfy a condition
- FilterInPlace - Filter elements in a slice that satisfy a condition without allocating new slice(efficient than Filter)
- FilterInPlaceGC - Filter elements in a slice that satisfy a condition without allocating new slice and zeroing wanted elements(efficient than Filter)
- FindFn - Find element in a slice(for comparable types)
- FindFn - Find element in a slice that satisfies a condition
- Map - Map elements in a slice
- Reduce - Reduce elements in a slice to a single value
- Sum - Sum all elements in a slice (for numeric/string types)
- SumFn - Sum all elements in a slice that satisfy a condition(for custom types)
- Unique - Remove duplicate elements in a slice (for comparable types)
- UniqueFn - Remove duplicate elements in a slice that satisfy a condition(for custom types)
- UniqueInPlace - Remove duplicate elements in a slice without allocating new slice(efficient than Unique)
- UniqueFnInPlace - Remove duplicate elements in a slice without allocating new slice(efficient than UniqueFn)
And a lot more(in pipeline).
Maps
TBD
Want to contribute?
see [guide](CONTRIBUTING.md).
Contact
Feedback
This is very much important to improve this package. Do let me know if you have any feedback. Leave a ⭐ if you find this helpful.