Go-github: Question: Extract Stringify() helper?

Created on 7 Mar 2017  路  6Comments  路  Source: google/go-github

Hey there! Thank you for making go-github! 馃槃

I find the Stringify() function super useful and wonder whether it could be a separate project for other projects to import and use. I couldn't find an open or closed issue on this, apologies if this is the wrong place to ask.

I would be happy to implement the library, but want to give proper attribution.

What do you think?

All 6 comments

+cc @willnorris as he is the original author of go-github and Stringify in https://github.com/google/go-github/commit/8f77def830f742728ad2ffb1f0964a192b008ad6

Fine with me. The BSD license go-github is under certainly allows for that :)

Awesome! Thanks very much @willnorris @gmlewis 馃槂

go-repr allows you to debug print your objects with a single line of code.

By the way, in case you're not already aware of them, there are some libraries for "deep pretty printing" Go structs, such as https://github.com/davecgh/go-spew and https://github.com/shurcooL/go-goon#readme. If you already knew that, carry on.

Thank you @shurcooL! 馃檱

I had come across go-spew. I'll have a look at your project too!

Was this page helpful?
0 / 5 - 0 ratings