Coder Social home page Coder Social logo

go2flow's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

go2flow's Issues

panic: runtime error: invalid memory address or nil pointer dereference

When invoking go2flow with an embedded/anonymous struct go2flow panics with a nil pointer error.

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x506b57]

goroutine 1 [running]:
github.com/kristiehoward/go2flow/handlers.handleField(0x0, 0x0, 0x0, 0x0, 0x5c1a00, 0xc4200a51e0, 0x0, 0x0)
        /home/vagrant/.go/src/github.com/kristiehoward/go2flow/handlers/handlers.go:11 +0x37
github.com/kristiehoward/go2flow/handlers.HandleTypeDef(0x0, 0xc4200a51c0, 0x0, 0x5c1e40, 0xc4200a5740, 0x0)
        /home/vagrant/.go/src/github.com/kristiehoward/go2flow/handlers/handlers.go:66 +0x13e
main.TypeDefInspector(0x5c11c0, 0xc42008e900, 0xc42008a601)
        /home/vagrant/.go/src/github.com/kristiehoward/go2flow/main.go:39 +0x62
go/ast.inspector.Visit(0x5ab750, 0x5c11c0, 0xc42008e900, 0x5bffe0, 0x5ab750)
        /usr/local/go/src/go/ast/walk.go:373 +0x3a
go/ast.Walk(0x5bffe0, 0x5ab750, 0x5c11c0, 0xc42008e900)
        /usr/local/go/src/go/ast/walk.go:52 +0x66
go/ast.Walk(0x5bffe0, 0x5ab750, 0x5c0c00, 0xc4200bcc00)
        /usr/local/go/src/go/ast/walk.go:331 +0xf2f
go/ast.walkDeclList(0x5bffe0, 0x5ab750, 0xc4200be400, 0x19, 0x20)
        /usr/local/go/src/go/ast/walk.go:38 +0x81
go/ast.Walk(0x5bffe0, 0x5ab750, 0x5c0ac0, 0xc4200d8280)
        /usr/local/go/src/go/ast/walk.go:353 +0x2650
go/ast.Inspect(0x5c0ac0, 0xc4200d8280, 0x5ab750)
        /usr/local/go/src/go/ast/walk.go:385 +0x4b
main.handleFile(0x7ffe5d0be577, 0xc, 0x3, 0x0)
        /home/vagrant/.go/src/github.com/kristiehoward/go2flow/main.go:52 +0xb5
main.run(0xc4200b4160, 0xc4200b4160, 0xc420047d27)
        /home/vagrant/.go/src/github.com/kristiehoward/go2flow/main.go:84 +0x211
github.com/kristiehoward/go2flow/vendor/github.com/urfave/cli.HandleAction(0x569300, 0x5ab758, 0xc4200b4160, 0xc4200b0060, 0x0)
        /home/vagrant/.go/src/github.com/kristiehoward/go2flow/vendor/github.com/urfave/cli/app.go:502 +0xc8
github.com/kristiehoward/go2flow/vendor/github.com/urfave/cli.(*App).Run(0xc4200ca000, 0xc42008e060, 0x3, 0x3, 0x0, 0x0)
        /home/vagrant/.go/src/github.com/kristiehoward/go2flow/vendor/github.com/urfave/cli/app.go:268 +0x60c
main.main()
        /home/vagrant/.go/src/github.com/kristiehoward/go2flow/main.go:100 +0x131

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.