ur experience shines thru ur tutorials; keep it up! thnx for the guidance
@GauravGahlotsVideos11 ай бұрын
I’m glad you liked it.
@andrewiglinski1482 ай бұрын
This is awesome dude, but any ideas on how to make sure that flags and arguments are being handled properly? II'm brand new to Go, but I feel like I have a pretty decent grasp on it already, but for the life of me I can't figure out how to test my viper/cobra flag/args/env handling.
@andrewiglinski1482 ай бұрын
Shit I'm an idiot... I should've waited until you got to the cmd.SetArgs function lol.
@GauravGahlotsVideosАй бұрын
@@andrewiglinski148 You should be able to set the flags in your unit tests, and the command should generate expected output.