[go] Feedback for my first project: reimplement pulp-manifest
Hi π
I have tried to learn some go but I am still very much at the beginning, like understanding how to work with variables and functions. My background is mostly in python but I am not a programmer by trade.
I am testing this using the following command: rm -f test_input/PULP_MANIFEST && go fmt pulp_manifest.go && go build pulp_manifest.go && ./pulp_manifest test_input && cat test_input/PULP_MANIFEST on Fedora with go 1.20
Known Limitations
My rewrite does not handle files or directories with "," yet.
Untested
Files with binary content
Paths on macOS or Microsoft Windows
Paths with whitespace
Symlinks in target_directory
target_directory as symlink
I am looking for the following feedback:
bugs and limitations
a was to add tests: do you have any recommendations for talks or blog posts?
style & best practice
a way to use static typing?!
anything else that you would recommend a novice.
Right now, I believe my rewrite works. Feel free to shatter my assumption. Cheers.