Just battled a nice neck injury that I fought and fought (work on the desk a lot as well). My ergonomics was not good and got it fixed. Bigger issue is that I found out with an MRI that I have a herniated disk. My golf game went to complete crap and was in constant pain.
If the pain does not get better I highly recommend seeing a doctor. What you think is a basic neck pain could be more and playing golf is going to make it worse. My doctor prescribed me specific meds which helped a great deal plus traction treatments will do wonders for your spine.
Not saying you have the issue I have but just throwing it out there in the event it gets worse or does not go away. The neck and spine is not something to mess with.