Context:
1. Golang can be very verbose, for example checking if err != nil after a 
function call takes 3 lines:
if err != nil {
   return nil, fmt.Errorf("some context: %v", err)
}


2. Editors like VSCode can already collapse blocks of statements, where the 
above would be displayed as:
if err != nil {...


My question:
Are there any editors that support some kind of customisable collapsing 
behaviour? Where the above code could be collapsed to something like:
...check...fmt.Errorf("some context: %v", err)...

Has anyone tried to implement this kind of behaviour? Is it difficult to 
achieve?



-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/e15556dd-b957-4d79-9ca4-8b6ed8eb6e6c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to