Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Jul 19, 2025. It is now read-only.
This repository was archived by the owner on Jul 19, 2025. It is now read-only.

Import statements in golang should be ignored #365

Open
Assignees
efueger
@ptxmac

Description

@ptxmac

I often get warnings in my golang projects that my import blocks are duplicates and should be refactored. Unfortunately, that's not how golang works - everything a file referencesmust be imported, there are no transitive imports.

A codeblock like:

package mypackageimport ("fmt""anotherpackage")

Will often occur in many files and the only way to get rid of duplication would be to put everything in one file which is a horrible way to improve maintainability

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp