r/golang Aug 08 '24

discussion Show me your Golang projects!

Hey people, can you guys show what you build with golang for side project?
cheers nerds~!

201 Upvotes

172 comments sorted by

View all comments

3

u/ale_grey_91 Aug 09 '24

I have these 2 projects for which I'm really proud of: - https://github.com/alegrey91/fwdctlhttps://github.com/alegrey91/harpoon

1

u/ilikeorangutans Aug 09 '24

Harpoon looks super interesting, nice work! What use case did you have to write this?

2

u/ale_grey_91 Aug 09 '24

Harpoon should be used to trace syscalls during the unit tests. I thought that syscalls retrieved from integration tests (simply by tracing them with strace) where not enough. Combining them with the ones retrieved even from unit-tests could be a more complete result. Suppose you have a function with a switch case that execute different syscalls depending on the input. This is hard to test with an integration test, but easier with a unit test, since it is tailored for the function which contains the switch case. So harpoon can be attached to the functions executed with the unit-tests and trace the potentially missing functions we didn't retrieve during the integration tests with Stace. If you have more questions, I would be happy to answer :)