There is a function that accepts a structure with a numeric field, in the function you need to check the following: if a value was written in the field, then return true, and if not, false. In this case, 0 can also be an assigned value, that is, if assigned to a field of 0, the function should return true.
type Data struct { Num int } func test(d Data) bool { // если d.Num значение присвоено, даже если это ноль то вернуть true // иначе false }