-
Notifications
You must be signed in to change notification settings - Fork 1
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: split and organize files #26
base: master
Are you sure you want to change the base?
Conversation
14dc9e2
to
c42d6eb
Compare
The workflow and CI changes should be in their own PR, I've just included them here temporarily. I used Some specific questions:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, but I’m going to defer to Tom on this one.
Hmm, I'm negative on this. Reasons:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See previous comment. I need to know what problem is this splitting solves.
True, but that is also partly because the library is unfinished.
Indeed. I wanted to group functions mostly based on what they operate on or manipulate.
In addition to wanting to potentially offer each function group as a separate package for users, my primary concern is the lines of code, which you may not see as an issue, and which may demonstrate my inexperience with Go. #16 shows that we have currently only scratched the surface of what we would like to achieve, and we still have almost 400 lines of code in a single file. What does that look like when we have enough functions for a release? Many other template function libraries are structured in a similar way, though I would never use that as my primary motivation. On reflection, it seems I don't have any particularly strong reasons for doing this. We can close and revisit this if/when it's necessary, if preferred. |
Thanks for the reply. Maybe it's worth splitting the files but keeping everything in a single package for now? I also think we should export the individual Go template functions with reasonable names (e.g. rename |
I agree, but further to your point about arbitrariness, perhaps holding off on this would better inform us regarding how to group the functions? Naming things is hard, after all. |
This will probably break.
Unfinished and very WIP.
I would appreciate some feedback on my approach, as I don't really know what I'm doing (I'm learning a lot, though!) :)