you can always try the streak test. it's when you scrape the mineral onto a flat surface used to test streaks. if it's possible, you can get a reasonable amount of the golden part from the quartz and test the streak. if it's black it's pyrite. if it's a golden yellow it's gold.
if you can't do something like what is said above then you can attempt to scrape the unknown golden mineral. pyrite is a sulfur compound, and if it's scratched or crushed it gives out a horrible smell.