The song you're thinking of is "Sweet Child o' Mine" by Guns N' Roses. Released in 1987, it's one of the band's most popular songs. It features a memorable guitar riff and a vocal performance by Axl Rose that includes the "do do doo" part in the outro. The song is a rock ballad and has been a staple of classic rock radio for decades.