Depending on the width of the cart the other issue would be going over the wheel wells. My sons quad can easily drive over the wheel wells because its 4 wheel drive. Golf cart will be more difficult and may need blocking built in to help the front tires clear. Carts with big tires are probably able to do it. Depending on the cart and having to do it over and over I would probably fabricate more permanent "shims" or small "platforms" to create a smooth transition over the wheel wells. The front tires would be up above the wheel well height and the rear would be at bed level. Most beds should be 48 inches between wheel wells.
One example but check the cart weight