Code Monkey home page Code Monkey logo

enameg's People

Contributors

hogedigo avatar iii-ishida avatar knig-ishida avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

54m

enameg's Issues

型変換を用いたconst定義に未対応

type OrderShippingMethod string

const (
	OrderShippingMethodDelivery = OrderShippingMethod("delivery") // ご自宅配送
	OrderShippingMethodShop     = OrderShippingMethod("shop")     // 店頭引き渡し
)

panic with some cases

It would cause panic with cases below.

  • only type definition without constants.
  • no comment after a constant.
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0x10dfd7a]

goroutine 1 [running]:
github.com/knightso/enameg.newConst(0xc42009ec90, 0xd, 0xc420078270, 0x0, 0x0, 0x0, 0x0, 0x0)
       /Users/xxxxxx/vendor/src/src/github.com/knightso/enameg/enameg.go:177 +0x12a
github.com/knightso/enameg.Generate(0xc4200c6000, 0x113, 0x1f3, 0x113, 0x1f3, 0x6, 0x0)
       /Users/xxxxxxx/vendor/src/src/github.com/knightso/enameg/enameg.go:79 +0x3e0
main.main()
       /Users/xxxxxxx/vendor/src/src/github.com/knightso/enameg/cmd/enameg/main.go:45 +0xa8

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.