Hard to say from a photograph, but when I zoom in, the yellow bit appears to resolve itself more like a mineral crystal that glistens. Gold will have an even yellow colour that doesn’t glisten.
If you know someone with a metal detector, if it were gold it should give off a decent metallic signal. You can also try a multimeter to test the conductivity of the yellow bit. Metals are highly conductive whereas minerals are generally not.