I'm trying to switch from PHP to GO, but I'm stuck at one point, I ask for your help.
I have a table called Menu in the database. Here, menuid equal to 0 becomes the main menu. Those not equal to 0 depend on the written menuid. I want to draw the sub menu it is dependent on, but I can't do it, I'm stuck.
Output > Instead of adding the sub menus one after the other, it adds each of them side by side and as a separate menu.
Instead of adding the sub menu one after the other , it adds each of them side by side and as a separate menu . I couldn't find how to do it.





I solved my problem.
I implemented a structure like below. Anyone who needs it can copy it from here.