Find a way to use comments for your ""big space"

On Fri, Jun 30, 2017 at 8:12 PM <siduri.iru...@gmail.com> wrote:

> I have a few such bug bears, so, my trick is to 'fix' fmt's helpful
> services when I check a file out, and only run fmt automatically when the
> file is committed to the repository.
>
> This keeps my fugly habits out of the tidy fmt'ed space and at the same
> time, keeps fmt's attempts to tickle my OCD safely away from me :-)
>
> Think about this way:  because fmt enforces uniformity, you now have the
> chance to have your code shaped *exactly* they way you like it, without
> having to write too much formatting code to cover everyone's peculiarities.
>
>
> Siduri
>
>
>
> On Saturday, July 1, 2017 at 2:27:10 AM UTC+1, Glenn Hancock wrote:
>>
>> I am learning the go language and really liking it.  However, there are a
>> few things that drive me crazy and I wanted to list one in particular to
>> see if there is some way to change it.
>>
>> When I write a package that has 20 different functions in it I like to
>> add 4 or 5 blank lines between each function to make it easier to scroll
>> down through the code and easily see where one starts and ends.  Currently
>> gofmt removes all my extra lines and replaces them with a single space
>> which makes it difficult to easily see what I'm looking at.
>>
>> Is there some way to get it to not remove my extra lines?
>>
>> Thanks,
>>
>> Glenn
>>
> --
> 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.
> For more options, visit https://groups.google.com/d/optout.
>
-- 
Michael T. Jones
michael.jo...@gmail.com

-- 
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to