Skip to content

Proposal: Add goimports support to Playground (add/remove stdlib imports on Format). #29

Closed
@dmitshur

Description

@dmitshur

The Go Playground has a checkbox to enable goimports-like fixing imports when pressing Format.

image

It's handy for fixing imports of standard library (fmt, io, bytes, etc.), and I'm used to it. I'd like to see it added to GopherJS Playground to make it better.

Any thoughts? Objections?

Should it be optional like on Go Playground or just always on?

I can volunteer to implement it. I already have implemented it locally, so it's just a matter of cleaning up the code and making a PR.

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