I'm on an iMac 27'' late 2013 model and I want to run the gofmt
tool against my package.
I'm calling it like so:
iMacs-Image:sergiotapia ~/smitego $ gofmt
And it's frozen there forever, never completing. Any suggestions?
You're calling it incorrectly. gofmt
expects a source file on its standard input and outputs formatted code on standard output. Use go fmt
(with a space) inside the directory of the package you want to format to format the code inside a package.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With