Go で HTML テンプレートのフォルダーをロードしたいのですが、現在、各ファイル パスを引数の文字列としてのみ渡すことができます。
例:
templates = template.Must(template.ParseFiles("../web/html_templates/edit.html","../web/html_mplates/view.html"))
正常に動作します。
これおよび同様のソリューションは機能しません。
templates = template.Must(template.ParseFiles("../web/html_templates/*"))
構成ファイルでテンプレートを指定したいのですが、現在できません。これについて最善の方法は何ですか?