Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: Extract Stringify() helper? #584

Closed
hackebrot opened this issue Mar 7, 2017 · 6 comments
Closed

Question: Extract Stringify() helper? #584

hackebrot opened this issue Mar 7, 2017 · 6 comments

Comments

@hackebrot
Copy link

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?

@gmlewis
Copy link
Collaborator

gmlewis commented Mar 7, 2017

+cc @willnorris as he is the original author of go-github and Stringify in 8f77def

@willnorris
Copy link
Collaborator

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

@hackebrot
Copy link
Author

Awesome! Thanks very much @willnorris @gmlewis 馃槂

@hackebrot
Copy link
Author

https://github.com/hackebrot/go-repr 馃槃

@dmitshur
Copy link
Member

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.

@hackebrot
Copy link
Author

Thank you @shurcooL! 馃檱

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants