blob: fb3d04e6a3959b5085f2e2ddc788dbe2800acc42 [file] [log] [blame]
.. _Release Task Golang Syntax:
GOLANG: Syntax formatting with gofmt
====================================
Use the gofmt command to reformat golang sources gathered outside the vendor/ directory.
.. code-block:: shell-session
:caption: Golang source formatting
% git clone ssh://gerrit.lfbroadband.org:29418/voltha-lib-go.git
% cd voltha-lib-go
% make sterile
% make golang-fmt
% find . ! -path './vendor/\*' -name '*.go' -print | xargs -n1 gofmt -s -e -w