Home-made Burger buns food safety
Best way to keep bread for a long time, more than 1 day, especially burger buns, which are more fragile than regular bread is to freeze them.

Slice them open and freeze them as quickly as possible, but in a freeze bag.

(edit)
If your buns start having fungus after just a couple of days, maybe there is something wrong with your recipe; could you share the recipe?