[go-nuts] [x/term] Adding history save/restore/clear/etc and some small issues

2024-06-06 Thread Dragos Vingarzan
Hey folks, I recently embedded the golang.go/x/term into my application and I love the simplicity and effectiveness of having such a terminal. The history part of it is also great to have, but even better if one could save/restore the history over application restarts. I did some changes and a

[go-nuts] Re: Guidance on techniques that can help me write a comprehensive test for my go library.

2024-06-06 Thread Jeremy French
This: > "I want to be able to mock every function in my library." is a bit confusing. Normally, you want to mock the functions that your library calls, not your own library functions. Other than that, this seems pretty doable.. Can you give some more clarification as to what aspect is giving you