# HG changeset patch # User Augie Fackler # Date 1576609442 18000 # Node ID b78795c2a294e02fb4e1bed91a2439b9d44fc393 # Parent 4222b9d5d4fb0840e612c08ab0967199de2321ce examples: add an example configuration for go source files Tested by timeless. Differential Revision: https://phab.mercurial-scm.org/D7683 diff -r 4222b9d5d4fb -r b78795c2a294 contrib/examples/fix.hgrc --- 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