This video will explain what a golf cart solenoids is and how it works. A golf cart’s solenoid switch is the main power breaker between your cart’s batteries and the motor. It is also one of the first things to go bad on golf carts.
Barry of the YT channel “DIY Golf Cart” gets us a demo by using a solenoid to trigger power flow between a battery and a headlight.
Replacement golf cart solenoids can be found here on the cheap.