When you realize that the speed governor on a gas cart keeps the operation far below the cart's potential, even when you floorboard the gas, you can appreciate that you are not putting any great strain on the engine.
Check the oil level frequently, get an oil change as recommended by the dealer; my Yamaha dealer says annually.
You will find the repair discussions for electrics are much more extensive because battery problems are much more commonplace.
Both types of carts sometimes are reported to have wheel alignment problems. Try to avoid hitting curbs, particularly in tunnel entrances and exits.
I bought a used cart from a dealer who had routinely installed a new gear box as part of the refurbishment so it should last for years.