https://github.com/sudosz/go-utils
Common Go utility functions for efficient development.
https://github.com/sudosz/go-utils
go golang helper helper-functions high-performance library optimization package performance utilities utility-function utils utils-repo
Last synced: 6 months ago
JSON representation
Common Go utility functions for efficient development.
- Host: GitHub
- URL: https://github.com/sudosz/go-utils
- Owner: sudosz
- License: mit
- Created: 2025-03-31T20:28:55.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-04-04T20:13:47.000Z (10 months ago)
- Last Synced: 2025-06-17T10:47:27.105Z (7 months ago)
- Topics: go, golang, helper, helper-functions, high-performance, library, optimization, package, performance, utilities, utility-function, utils, utils-repo
- Language: Go
- Homepage:
- Size: 66.4 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Go Utils - High-Performance Toolkit
[](https://pkg.go.dev/github.com/sudosz/go-utils)
[](LICENSE)
[](https://goreportcard.com/report/github.com/sudosz/go-utils)
**Go Utils** is a curated collection of high-performance, production-ready Go utility functions and packages. Designed for speed, efficiency, and robustness, these utilities have been rigorously tested and optimized for demanding applications.
**Key Features:**
* **Performance-Focused:** Leveraging unsafe optimizations and efficient algorithms for maximum speed.
* **Production-Ready:** Battle-tested across numerous production environments.
* **Comprehensive Suite:** Covering a wide range of utility needs from string manipulation to concurrency management.
* **Well-Documented:** Ensuring reliability and ease of use.
## Packages
| Package | Description |
| -------------- | --------------------------------------------------------------------------- |
| `bytesutils` | Optimized byte manipulation utilities. |
| `cacheutils` | High-performance caching implementations. |
| `channelutils` | Robust channel utilities with comprehensive testing. |
| `gopool` | Efficient goroutine pool management for concurrent tasks. |
| `intutils` | Optimized integer manipulation functions. |
| `iterutils` | Flexible iterator implementations for data processing. |
| `net` | Networking utilities, including HTTP client helpers and user agent parsing. |
| `poolutils` | Versatile pool implementations (LRU, limited, recycler) for resource management. |
| `sliceutils` | Optimized slice manipulation utilities for common operations. |
| `stringutils` | String manipulation with unsafe optimizations for critical performance paths. |
| `terminalutils`| ANSI terminal utilities for rich command-line interfaces. |
## Installation
```bash
go get github.com/sudosz/go-utils
```
## Usage
Import the specific package you need:
```go
import (
"fmt"
stringutils "github.com/sudosz/go-utils/strings"
)
func main() {
result := stringutils.ToLower("EXAMPLE STRING")
fmt.Println(result) // Output: example string
}
```
## Contributing
Contributions are highly encouraged! Please follow these guidelines:
1. **Fork** the repository.
2. Create a **feature branch** (`git checkout -b feature/your-feature`).
3. Implement your changes and write **thorough tests**.
4. Ensure code adheres to `gofmt` and `golint`.
5. Submit a **pull request** with a clear description of your changes.
## License
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.