mholt / json-to-go

Translates JSON into a Go type in your browser instantly (original)
https://mholt.github.io/json-to-go/
MIT License
4.51k stars 475 forks source link

Clear button and Copy button #27

Open ncw opened 7 years ago

ncw commented 7 years ago

I love your tool - I've been using it a lot recently!

My work flow generally is copy some bit of javascript, go to the tool, realise that it has the last bit of javascript I put in already there and click refresh. A clear button on the left hand side to clear the left hand form would be very useful in this situation.

Likewise a copy button on the right hand side to copy the output of the RHS text box into the copy buffer would save me time too!

Thanks for a great tool

Nick

mholt commented 7 years ago

I've been thinking about an improved UI anyway. Good idea!

When I get around to it, I'll make sure this gets in there. :)

ncw commented 7 years ago

Thanks :-)

ritz078 commented 7 years ago

@mholt I would like to add this on https://transform.now.sh and also publish as a separate npm package.

I have added it https://transform.now.sh/json-to-go/ and added you as a contributor here

michaelsanford commented 5 years ago

@ritz078 FYI The link does not (currently) work with a trailing slash 👉 https://transform.now.sh/json-to-go