Goa is the part of India that spent 451 years under Portugal. The Portuguese took the city of Goa from the sultan of Bijapur in 1510, and they stayed until India took the territory in December 1961, long after the British had gone. You can still read that history in the whitewashed churches, the pork vindaloo and a large Catholic community. Beaches came later. The hippies found them in the late 1960s, the trance parties followed, and today the coast is where most visitors spend nearly all their time.
That split is the real shape of the place, so this plan does both. Old Goa, Panaji and the inland waterfall and spice country on one side, and two very different coasts on the other: the north, with Anjuna, Vagator, Arambol and the party reputation, and the south, with Colva, Agonda and Palolem, which is calmer. The state is small, but the roads are slow and no train line runs along the beaches, so five days is the right length. It gives you each part without spending half of every day in a taxi.
The days are organized by area. Day one is Old Goa and Panaji, day two a trip up to Dudhsagar Falls and a spice farm, day three the north-central beaches and the Saturday night market, day four the south, and day five the far north. Start on a Thursday: the Saturday market falls on day three, and nothing in the plan lands on a closing day. Do it between late November and February, when it's dry, the sea is calm and the beach shacks are open. For India as a whole, see India. If you're also visiting Mumbai, 5 Days in Mumbai is the matching guide, and the direct flight takes about 1.5 hours.