There are a couple problems.
foodStruct does have a field
f is not a
foodStruct. It's a
map[int]foodStruct, which doesn't have any fields or methods at all.
Second, nowhere in
f is there anything that has the type
map[int]map[int]string. There's no way to pass any part of
showFood without creating a new map of the correct type.