The Golden State Warriors pulled out a last-second victory against the visiting Sacramento Kings, as Klay Thompson drove home the dagger.