From a89e19f4e1e57cf46eb0fb00afe734af268eba85 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 9 Jan 2025 22:00:05 +0000 Subject: [PATCH] gnu: Add go-github-com-stoewer-go-strcase. * gnu/packages/golang-xyz.scm (go-github-com-stoewer-go-strcase): New variable. Change-Id: I4c148cba75a4000ee4fd3a9366bf525d26df7849 --- 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 99810b517e..4704566fbb 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -12849,6 +12849,34 @@ all types of configuration needs and formats.") (home-page "https://github.com/stathat/go") (license license:expat)))) +(define-public go-github-com-stoewer-go-strcase + (package + (name "go-github-com-stoewer-go-strcase") + (version "1.3.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/stoewer/go-strcase") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1gqswiyj71h676lmqb78rs125iq8msklymhzw0w59afywxqsaj2z")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/stoewer/go-strcase")) + (native-inputs + (list go-github-com-stretchr-testify)) + (home-page "https://github.com/stoewer/go-strcase") + (synopsis "Convert snake case, camel case and kebap case strings") + (description + "Package strcase converts between different kinds of naming formats such +as camel case (@code{CamelCase}), snake case (@code{snake_case}) or kebab +case (@code{kebab-case}). The package is designed to work only with strings +consisting of standard ASCII letters.") + (license license:expat))) + (define-public go-github-com-stretchr-objx (package (name "go-github-com-stretchr-objx")