blob: 0f6bb1e735e825e6eec20e4d7ae4b03899c70a7e [file] [log] [blame]
Joey Armstronga144ef32024-01-11 11:26:41 -05001.. _Release Task Golang Syntax:
2
3GOLANG: Syntax formatting with gofmt
4====================================
5
6Use the gofmt command to reformat golang sources gathered outside the vendor/ directory.
7
8.. code-block:: shell-session
9 :caption:
10
11 % make golang-fmt
12
13 % cd mysandbox
14 % find . ! -path './vendor/\*' -name '*.go' -print | xargs -n1 gofmt -s -e -w