Skip to content

cmd/gofmt: should break down long lines of comments #11915

Closed

Description

@derekchiang

There should be a default like 100 characters per line. Then if your comment is longer than that, gofmt should break it down into shorter lines.

Activity

  1. griesemer commented on Jul 29, 2015

    @griesemer
    Contributor

    Setting to 100 is arbitrary. There's a large number of people that think it should be 80 chars (perhaps because that's how wide terminals were in the 80s). Others say 120. And so on. We could have a flag to specify it. But that would defeat the primary advantage of gofmt of producing one uniform style. There's no good answer to setting a limit.

    It's much better to leave judgement to authors, programs, etc. that generate Go code, and respect the original input in that respect.

    Will not change.

  2. changed the title [-]gofmt should break down long lines of comments[/-] [+]cmd/gofmt: should break down long lines of comments[/+] on Jul 29, 2015
  3. locked and limited conversation to collaborators on Aug 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      ⌂ 换网址