Use `golines` to format Go's long line code
VS Code already does a great work to use gofmt to auto format your go code, but it won't format your lone line go code. To do it you could install a tool named golines.
Steps:
1, Install golines: go get -u github.com/segmentio/golines
2, Open VS code...
hn.0xbf.me1 min read