Skip to content

Go allows multiple imports of same package using package aliasing #17301

@bradclawsie

Description

@bradclawsie

Please answer these questions before submitting your issue. Thanks!

What version of Go are you using (go version)?

go v1.7.1 linux/amd64

What operating system and processor architecture are you using (go env)?

debian sid, linux amd/64

What did you do?

https://play.golang.org/p/GJ8Iru85xd

What did you expect to see?

That fmt cannot be imported multiple times.

What did you see instead?

I was able to import the same package again under an alias...personally this strikes me as wrong.

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