From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id 6D6MKYg8tWXHLgEAe85BDQ:P1 (envelope-from ) for ; Sat, 27 Jan 2024 18:25:28 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id 6D6MKYg8tWXHLgEAe85BDQ (envelope-from ) for ; Sat, 27 Jan 2024 18:25:28 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1706376328; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=sR/P0o3xWw0M/6M6lrapX4U4MNk6EkyblQ9dHGyjYgQ=; b=Aq/ccwPGYF5+SfQrmPbWg+YFVNEZwnXjLxySCCu7o8434AHbe/kjMCn5Mn0YfuQf6k4QA9 lSzqGyoqqXgRa89yyoz1EmVrq37cvJyc3YA6CnU3WupWUHGiAMbA7swlp2apPlaoI7APmE hMNqE+jCdDET4aU1ntmkaGrKMhUyGgw+qdzHjuvwovWfLmHhNfdJfQsymLXRZ+yQUlalwR IMZvb1GrRUj1MFl6RMoKiaJT1PJxgg82+Oo0+hVkfdR44jV/bUPkjpkshuE8+gkLyk9JjM 9MytD8OwYJueS1lm27YrbZW18UKGzpwVY/+vhYu9zyZwN/jqLx2UPZok+HnP5A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1706376328; a=rsa-sha256; cv=none; b=r251wTE1aspUgr9cL07vquvxt/qNg1hamUa929paH+GPyDS/cDPCvwiSdBs9833sV19reb Jb+F1wsXCD5coQ9g1joSX45nH4gNTPtuqgm6nnE2ddnCOvJWAf1q5Xwy/b121DjOx+Wfzt 55VqApWC3QqO8XrAaVd2jBfVM4MD+cYgiYY5Qeu1wzo0mNk0rZEKuee1kYI2Aa8veAGGXD yBmUNPDVvhf9Jzy90a/G8MUynAV3iShae8igtMexJp7tpD5bcAXZYK7pr8uVvzfpFFwaky 12ygAlhmQBsRbMnIuHRl3RWDyVZi4dRKFV5dcO9A01oT7oKl8EpxqpvIuSNQMg== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 70D4B4500A for ; Sat, 27 Jan 2024 18:25:28 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rTmQN-0001DI-Ad; Sat, 27 Jan 2024 12:24:59 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rTmQL-0001By-3y for guix-patches@gnu.org; Sat, 27 Jan 2024 12:24:57 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rTmQK-00054y-Rx for guix-patches@gnu.org; Sat, 27 Jan 2024 12:24:56 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rTmQS-00071E-0e for guix-patches@gnu.org; Sat, 27 Jan 2024 12:25:04 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#68763] [PATCH 5/7] gnu: Add go-structlayout-optimize. Resent-From: Nicolas Graves Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 27 Jan 2024 17:25:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68763 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 68763@debbugs.gnu.org Cc: ngraves@ngraves.fr Received: via spool by 68763-submit@debbugs.gnu.org id=B68763.170637629526917 (code B ref 68763); Sat, 27 Jan 2024 17:25:03 +0000 Received: (at 68763) by debbugs.gnu.org; 27 Jan 2024 17:24:55 +0000 Received: from localhost ([127.0.0.1]:55833 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rTmQJ-0006zy-8g for submit@debbugs.gnu.org; Sat, 27 Jan 2024 12:24:55 -0500 Received: from 8.mo561.mail-out.ovh.net ([87.98.172.249]:56405) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rTmQF-0006zO-GY for 68763@debbugs.gnu.org; Sat, 27 Jan 2024 12:24:52 -0500 Received: from director11.ghost.mail-out.ovh.net (unknown [10.108.9.77]) by mo561.mail-out.ovh.net (Postfix) with ESMTP id E80F227549 for <68763@debbugs.gnu.org>; Sat, 27 Jan 2024 17:24:42 +0000 (UTC) Received: from ghost-submission-6684bf9d7b-zslbp (unknown [10.110.113.35]) by director11.ghost.mail-out.ovh.net (Postfix) with ESMTPS id A6FF71FEBE; Sat, 27 Jan 2024 17:24:42 +0000 (UTC) Received: from ngraves.fr ([37.59.142.110]) by ghost-submission-6684bf9d7b-zslbp with ESMTPSA id 8WTzJVo8tWUgYgEASW770Q (envelope-from ); Sat, 27 Jan 2024 17:24:42 +0000 X-OVh-ClientIp: 90.110.172.34 Date: Sat, 27 Jan 2024 18:24:24 +0100 Message-ID: <20240127172428.18351-5-ngraves@ngraves.fr> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240127172428.18351-1-ngraves@ngraves.fr> References: <20240127172428.18351-1-ngraves@ngraves.fr> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Ovh-Tracer-Id: 4348788394205438690 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvkedrvdelledgleelucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucenucfjughrpefhvfevufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpefpihgtohhlrghsucfirhgrvhgvshcuoehnghhrrghvvghssehnghhrrghvvghsrdhfrheqnecuggftrfgrthhtvghrnhepgfdutdfhueeutddvhfehveehveettdegkeejleehleekhedvtdefkeekudeuieeunecuffhomhgrihhnpehhohhnnhgvfhdrtghonecukfhppeduvdejrddtrddtrddupdeltddruddutddrudejvddrfeegpdefjedrheelrddugedvrdduuddtnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepuddvjedrtddrtddruddpmhgrihhlfhhrohhmpeeonhhgrhgrvhgvshesnhhgrhgrvhgvshdrfhhrqedpnhgspghrtghpthhtohepuddprhgtphhtthhopeeikeejieefseguvggssghughhsrdhgnhhurdhorhhgpdfovfetjfhoshhtpehmohehiedupdhmohguvgepshhmthhpohhuth X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Nicolas Graves X-ACL-Warn: , Nicolas Graves via Guix-patches From: Nicolas Graves via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -6.65 X-Migadu-Queue-Id: 70D4B4500A X-Spam-Score: -6.65 X-Migadu-Scanner: mx11.migadu.com X-TUID: puC8XRlaWPm1 * gnu/packages/golang-check.scm (go-structlayout-optimize): New variable. Change-Id: I7e1ce9acbe3ec09cc8b441de4816b247a2742938 --- gnu/packages/golang-check.scm | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm index e55520d52e..3bfc7e679f 100644 --- a/gnu/packages/golang-check.scm +++ b/gnu/packages/golang-check.scm @@ -122,6 +122,19 @@ (define-public go-structlayout is printed in human-readable form by default, or as JSON with the @code{-json} flag."))) +(define-public go-structlayout-optimize + (package + (inherit go-honnef-co-go-tools) + (name "go-structlayout-optimize") + (arguments + `(#:import-path "honnef.co/go/tools/cmd/structlayout-optimize" + #:unpack-path "honnef.co/go/tools" + #:install-source? #f)) + (synopsis "Reorder struct fields to minimize the amount of padding in Go.") + (description "This package reads @code{go-structlayout} JSON on stdin and +reorders fields to minimize the amount of padding. It can emit JSON to feed +into @code{go-structlayout-pretty}."))) + (define-public go-github-com-alecthomas-assert (let ((commit "405dbfeb8e38effee6e723317226e93fff912d06") (revision "1")) -- 2.41.0