changeset 43927:b78795c2a294

examples: add an example configuration for go source files Tested by timeless. Differential Revision: https://phab.mercurial-scm.org/D7683
author Augie Fackler <augie@google.com>
date Tue, 17 Dec 2019 14:04:02 -0500
parents 4222b9d5d4fb
children 70abcb614a5c
files contrib/examples/fix.hgrc
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/contrib/examples/fix.hgrc	Sun Dec 15 21:34:00 2019 -0500
+++ b/contrib/examples/fix.hgrc	Tue Dec 17 14:04:02 2019 -0500
@@ -7,3 +7,8 @@
 
 black:command = black --config=black.toml -
 black:pattern = set:**.py - mercurial/thirdparty/** - "contrib/python-zstandard/**"
+
+# Mercurial doesn't have any Go code, but if we did this is how we
+# would configure `hg fix` for Go:
+go:command = gofmt
+go:pattern = set:**.go