Giter Club home page Giter Club logo

goimportdot's Issues

Not work if pkg has suffix `.go`

error output:

panic: read /path/to/pkg/vendor/github.com/orfjackal/nanospec.go: is a directory
github.com/yqylovy/goimportdot/core.GetImports.func1(0xc4204cd680, 0x5e, 0x11a4180, 0xc420184680, 0x0, 0x0, 0x0, 0x0)
	/Users/cicerocomp/go/src/github.com/yqylovy/goimportdot/core/imps.go:52 +0x1eb
path/filepath.walk(0xc4204cd680, 0x5e, 0x11a4180, 0xc420184680, 0xc42001a360, 0x0, 0x0)
	/usr/local/go/src/path/filepath/path.go:351 +0x81
path/filepath.walk(0xc4204ccde0, 0x52, 0x11a4180, 0xc4201f0ea0, 0xc42001a360, 0x0, 0x0)
	/usr/local/go/src/path/filepath/path.go:376 +0x414
path/filepath.walk(0xc4201e4370, 0x48, 0x11a4180, 0xc420073ba0, 0xc42001a360, 0x0, 0x0)
	/usr/local/go/src/path/filepath/path.go:376 +0x414
path/filepath.walk(0xc4204db9c0, 0x3d, 0x11a4180, 0xc4200bf790, 0xc42001a360, 0x0, 0x0)
	/usr/local/go/src/path/filepath/path.go:376 +0x414
path/filepath.walk(0xc4200103c0, 0x36, 0x11a4180, 0xc4200728f0, 0xc42001a360, 0x0, 0x30)
	/usr/local/go/src/path/filepath/path.go:376 +0x414
path/filepath.Walk(0xc4200103c0, 0x36, 0xc42001a360, 0x0, 0xc42001a330)
	/usr/local/go/src/path/filepath/path.go:398 +0x14c
github.com/yqylovy/goimportdot/core.GetImports(0x7fff5fbffa51, 0x1d, 0xc420010380, 0x3, 0x4, 0xc420010380, 0x2, 0x4)
	/Users/cicerocomp/go/src/github.com/yqylovy/goimportdot/core/imps.go:56 +0x2a5
main.main()
	/Users/cicerocomp/go/src/github.com/yqylovy/goimportdot/goimportdot.go:46 +0x537

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.