Joey Armstrong | a144ef3 | 2024-01-11 11:26:41 -0500 | [diff] [blame] | 1 | .. _Release Task Golang Syntax: |
2 | |||||
3 | GOLANG: Syntax formatting with gofmt | ||||
4 | ==================================== | ||||
5 | |||||
6 | Use 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 |