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:
|
halostatue
left a comment
There was a problem hiding this comment.
LGTM, but I’m going to defer to Tom on this one.
|
Hmm, I'm negative on this. Reasons:
|
twpayne
left a comment
There was a problem hiding this comment.
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!) :)