I am currently working on a project that leverages pointers to Bool values in golang. I am using corev1.SecurityContext.RunAsNonRoot which is a
*bool. When I am doing comparisons, I have to wrap all the checks for true/false in a helper function since I cannot be sure if the value will be unset (
nil) which will cause a fatal error.
Is there some other golang trick or pro-tip I should be using? Or is there some other type of method I should consider when using libraries that have this type of struct referencing
Any discussion would be so great! Happy Thursday!
Soft skills are as critical as technical skills for a software engineer. No one works in isolation. Each person has to deal with teammates, colleagues, managers, etc. Therefore team interpersonal skills are essential too. Soft skills include things like good communication, honesty, teamwork, integrity, organization, empathy, etc.