readthedocs / godocjson Goto Github PK
View Code? Open in Web Editor NEWGenerate json from go.
Generate json from go.
I've noticed in the code that the switch statement that deals with types panics when there's a map found, because there's no case for a map. Why can't I use maps?
$ godocjson testone
panic: Unknown type &{Map:572 Key:string Value:string}
goroutine 1 [running]:
main.typeOf(0x546920, 0xc42009c900, 0x0, 0x657490)
/home/michael/.gopath/src/github.com/rtfd/godocjson/godocjson.go:134 +0xdee
main.processFuncDecl(0xc42009ca80, 0xc4200c6960)
/home/michael/.gopath/src/github.com/rtfd/godocjson/godocjson.go:141 +0x250
main.CopyFuncs(0xc4200de6e0, 0x4, 0x4, 0xc420010390, 0x7, 0x7ffc01a6f56d, 0x7, 0xc420062240, 0xc42000c220, 0x1, ...)
/home/michael/.gopath/src/github.com/rtfd/godocjson/godocjson.go:168 +0x85
main.CopyPackage(0xc4200ee000, 0xc420062240, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/home/michael/.gopath/src/github.com/rtfd/godocjson/godocjson.go:230 +0x6be
main.main()
/home/michael/.gopath/src/github.com/rtfd/godocjson/godocjson.go:258 +0x284
The following case trips up the parameter output on functions:
https://github.com/rtfd/godocjson/blob/f75729a0ad76daccf5a8680e1bcb877fe214fcd2/godep.json#L329-L332
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.