azev
V2EX  ›  问与答

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

  •  
  •   azev · Oct 20, 2022 · 659 views
    This topic created in 1339 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   ·   2486 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 06:52 · PVG 14:52 · LAX 23:52 · JFK 02:52
    ♥ Do have faith in what you're doing.