You'd better not play golf immediately after the cataract surgery. You should protect your eyes carefully, not using your eyes in too much stress. You could play it after a month. However, you'd better eat more food with vitamin C to moisture the eyes in case of the dry eyes.
Well, generally speaking, in the first week after the surgery, you are not supposed to do some exercises, such as basketball or golf. And it can be dangerous for your eyes. As we know that after the cataract surgery, your eyes can be very fragile, so it can be hurt when you have the exercises. Also, if you use your eyes too much, that will lead to eye strain. And in some cases, it can be dangerous. So you should follow the things the doctor has told you. Besides, For example, you should avoid eye injuries by wearing a protective shield at night and with naps until you are advised by your doctor. Also, you should remember not sleep on the side of the operated eye for the first night. In addition, if your eyes have been infected by some viruses, you should go and see an eye doctor as soon as possible.