Put this on a repeating command block always active. If you're on 1.8 or lower, attach the command to a redstone clock (repeating circuit).
So what? Simply press Q to drop an item and it transforms into a diamond!
Too much gold? Throw them away and you get something 15 times more valuable! (a diamond)