In Go web development, how to dynamically insert different number of subtemplates?

1. Is learning the go language and trying to write a website, one of the functions is that after the user logs in, all the file directories contained by the user are displayed on the home page of the user, that is, the file information is mapped. At present, all the file names of the specified user can be accurately known and stored in a string slice. I try to use a sub-template to display a directory information, the sub-template can display the file name, and also successfully display a directory information in the template page, but because the number of users" directories is uncertain, how can you dynamically display and process according to the user"s directory information? At present, I am a junior college student. I have not yet engaged in the development of any projects, and everything is in the learning stage, but I do not know what aspects are involved. I hope that the kind-hearted respondents can specify the answer or provide an accurate plan, thank you very much!

Mar.02,2021

js ajax request API, dynamic loading processing ~

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e8ce40-46ed2.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e8ce40-46ed2.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?