While linting your project, you can have the following error :
pkg/apis/dogs.go:11: File is not `gofmt`-ed with `-s` (gofmt)
To resolve the issue, execute the following command :
gofmt -s -w .
It will simplify the code (with the option -s
) and write the result back (with the option -w
) on all the current folder (with .
).
I hope it will help you! 🍺
Print
Share
Comment
Cite
Upload
Translate
APA
Maxime Guilbert | Sciencx (2024-03-28T15:22:44+00:00) » How to debug : File is not `gofmt`-ed with `-s` (gofmt). Retrieved from https://www.scien.cx/2022/11/28/how-to-debug-file-is-not-gofmt-ed-with-s-gofmt/.
MLA" » How to debug : File is not `gofmt`-ed with `-s` (gofmt)." Maxime Guilbert | Sciencx - Monday November 28, 2022, https://www.scien.cx/2022/11/28/how-to-debug-file-is-not-gofmt-ed-with-s-gofmt/
HARVARDMaxime Guilbert | Sciencx Monday November 28, 2022 » How to debug : File is not `gofmt`-ed with `-s` (gofmt)., viewed 2024-03-28T15:22:44+00:00,<https://www.scien.cx/2022/11/28/how-to-debug-file-is-not-gofmt-ed-with-s-gofmt/>
VANCOUVERMaxime Guilbert | Sciencx - » How to debug : File is not `gofmt`-ed with `-s` (gofmt). [Internet]. [Accessed 2024-03-28T15:22:44+00:00]. Available from: https://www.scien.cx/2022/11/28/how-to-debug-file-is-not-gofmt-ed-with-s-gofmt/
CHICAGO" » How to debug : File is not `gofmt`-ed with `-s` (gofmt)." Maxime Guilbert | Sciencx - Accessed 2024-03-28T15:22:44+00:00. https://www.scien.cx/2022/11/28/how-to-debug-file-is-not-gofmt-ed-with-s-gofmt/
IEEE" » How to debug : File is not `gofmt`-ed with `-s` (gofmt)." Maxime Guilbert | Sciencx [Online]. Available: https://www.scien.cx/2022/11/28/how-to-debug-file-is-not-gofmt-ed-with-s-gofmt/. [Accessed: 2024-03-28T15:22:44+00:00]
rf:citation » How to debug : File is not `gofmt`-ed with `-s` (gofmt) | Maxime Guilbert | Sciencx | https://www.scien.cx/2022/11/28/how-to-debug-file-is-not-gofmt-ed-with-s-gofmt/ | 2024-03-28T15:22:44+00:00
https://github.com/addpipe/simple-recorderjs-demo