You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a fantastic utility - kudos for taking the effort to build it. I was wondering if you would be open to the idea of providing this utility also as a library so that any other projects working with code generation can use this to format the generated code.
My use case is that I work on a no-code project where we generate a lot of go code for our customers. The generated code has a huge map which by default is rendered on the same line and is impossible to grok with naked eyes. So I wanted to introduce golines as one of the preprocessing step to break down the map into individual lines. Hence if this utility is available as a library- it would be super useful for me.
I am happy to provide a PR for this - but will require some refactoring and hence wanted to discuss before working on it.
The text was updated successfully, but these errors were encountered:
Sure, feel free to submit a PR for this. This would involve moving shortener.go and some of the other utility files to their own package in a subdirectory?
@yolken-segment Yes i saw the code and that's what it will take. I will try to work on it as time permits and submit a PR. Thanks for this library and the accompanying blog post.
This is a fantastic utility - kudos for taking the effort to build it. I was wondering if you would be open to the idea of providing this utility also as a library so that any other projects working with code generation can use this to format the generated code.
My use case is that I work on a no-code project where we generate a lot of go code for our customers. The generated code has a huge map which by default is rendered on the same line and is impossible to grok with naked eyes. So I wanted to introduce golines as one of the preprocessing step to break down the map into individual lines. Hence if this utility is available as a library- it would be super useful for me.
I am happy to provide a PR for this - but will require some refactoring and hence wanted to discuss before working on it.
The text was updated successfully, but these errors were encountered: