Hi
Are there any tools available for golang to split long functions so that they can fit in 80 columns (as long as possible) ?
For example:
```
mux.Handle("/login", handlers.LoggingHandler(os.Stderr, http.HandlerFunc(lh.LoginHandler)))
mux.Handle("/add-referrer", handlers.LoggingHandler(os.Stderr, auth.Trace(auth.IsAuthenticated(auth.IsReferrer(http.HandlerFunc(lh.AddReferrerHandler))))))
```
could become:
```
mux.Handle(
"/login",
handlers.LoggingHandler(os.Stderr, http.HandlerFunc(lh.LoginHandler)))
mux.Handle(
"/add-referrer",
handlers.LoggingHandler(
os.Stderr,
auth.Trace(
auth.IsAuthenticated(
auth.IsReferrer(http.HandlerFunc(lh.AddReferrerHandler)),
),
),
),
)
```
Google groups will make the indents in the above snippet display wrong, but you get the idea.
Are there any tools (Similar to prettier for javascript) or techniques for getting this ?
Thanks.
Sankar