cheekybits / genny

Elegant generics for Go
MIT License
1.7k stars 167 forks source link

import stmt removed in output (sometimes) #78

Open XiaochenCui opened 2 years ago

XiaochenCui commented 2 years ago

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 commented 2 years ago

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

XiaochenCui commented 2 years ago

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