Typically you want an inch between the latch post and hinge post and the gate.  For double gates you will want 1 inch on each side of the gate as well as 1 inch between the two gates.  This gives you enough clearance so nothing rubs together.