azev
V2EX  ›  问与答

Gin 中加载模板只加载了子目录是怎么回事?

  •  
  •   azev · Oct 20, 2022 · 630 views
    This topic created in 1324 days ago, the information mentioned may be changed or developed.
    r.LoadHTMLGlob("templates/**/*")
    发现根目录里的模板文件没有加载
    只加载了子目录里的 而且不太明白在已经 define 名称的情况下 列表为什么还有再显示一下原始 html 文件?
    [GIN-debug] Loaded HTML Templates (5):
    -
    - footer.html
    - layout/footer
    - header.html
    - layout/header
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2891 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 37ms · UTC 04:22 · PVG 12:22 · LAX 21:22 · JFK 00:22
    ♥ Do have faith in what you're doing.