Last active
December 6, 2015 03:00
-
-
Save deltam/8f193ad114267ff4b072 to your computer and use it in GitHub Desktop.
goimportsで使ってるパッケージが消されてしまう場合 ref: http://qiita.com/deltam/items/448c332a3f785a8c75ae
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package mypackage | |
import ( | |
"fmt" | |
"time" | |
someLibrary "github.com/deltam/some-library-go" // パッケージ名と同じ別名をつける | |
) | |
func Hoge() { | |
return somLibrary.SomeFunc() // ここで使ってる | |
} | |
... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package mypackage | |
import ( | |
"fmt" | |
"time" | |
"github.com/deltam/some-library-go" // この行が消える | |
) | |
func Hoge() { | |
return someLibrary.SomeFunc() // ここで使ってる | |
} | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment