Many golf courses do have dress codes and you might not be allowed to play if you show up wearing something other than what the course calls proper attire.
What to Wear Golfing: Dress Code for the Beginners
Golf Attire: Everything You Need To Know
Women's Golf Dress Code: What Women Wear to Play Golf – Yatta Golf
Dress Code & Greens Staff Safety Policy
5 Golf Outfits for Women.
Golf Attire Etiquette - SportsRec
Golf Attire For Men
What Country Club Attire You Should Wear At A Country Club
Swing with Confidence: Discover the Perfect Attire for Every Golf
Women's Golf Dress Code - What to Wear on the Golf Course
No Jeans Allowed: The Golfer's Dress Code - The Left Rough
3 Features of the Best Golf Clothes – tasc Performance