From 268b2c8b5ac13389179e228687dd8d0b29a30f26 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 8 Jun 2025 13:47:29 +0100 Subject: [PATCH] gnu: Add go-github-com-olekukonko-errors. * gnu/packages/golang-xyz.scm (go-github-com-olekukonko-errors): New variable. Change-Id: I1d1e121c6b9019c3c4522d8f4daa051dc7c3083a --- gnu/packages/golang-xyz.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index c5a9085087d9d4bddd2f2cba1a168e837f69696e..68830b51d1106bb1b981717933f4f625d7d320ce 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -14920,6 +14920,34 @@ millisecond) (list #:import-path "github.com/oklog/ulid/v2")))) +(define-public go-github-com-olekukonko-errors + (package + (name "go-github-com-olekukonko-errors") + (version "1.1.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/olekukonko/errors") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "12wb02aa4pmd1dl34jczcf12v0bv7kh6qfp8zqmw0hsnh6kdp3i4")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/olekukonko/errors")) + (home-page "https://github.com/olekukonko/errors") + (synopsis "Enhanced Error Handling for Golang") + (description + "Package errors provides a robust error handling library with support for +error wrapping, stack traces, context storage, and retry mechanisms. It +extends the standard library's error interface with features like HTTP-like +status codes, error categorization, and JSON serialization, while maintaining +compatibility with `errors.Is`, `errors.As`, and `errors.Unwrap`. The package +is thread-safe and optimized with object pooling for performance.") + (license license:expat))) + (define-public go-github-com-olekukonko-tablewriter (package (name "go-github-com-olekukonko-tablewriter")