Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

import stmt removed in output (sometimes) #78

Open
XiaochenCui opened this issue Oct 9, 2021 · 2 comments
Open

import stmt removed in output (sometimes) #78

XiaochenCui opened this issue Oct 9, 2021 · 2 comments

Comments

@XiaochenCui
Copy link

XiaochenCui commented Oct 9, 2021

I have some imports like:

import (
	"fmt"
	"environment/types"
	"environment/utils"
)

But those stmt disappeared from output (sometimes) even if the semantics of my code is completely vaild

@XiaochenCui XiaochenCui reopened this Oct 14, 2021
@XiaochenCui XiaochenCui changed the title import stmt removed in output import stmt removed in output (sometimes) Oct 14, 2021
@XiaochenCui
Copy link
Author

What's the rule/pattern behind the import, and how can I avoid imports disappeared?

@XiaochenCui
Copy link
Author

It doesn't help to add "github.com/stretchr/gogen/generic" to source file's imports

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant