V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
azev
V2EX  ›  问与答

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

  •  
  •   azev · Oct 20, 2022 · 575 views
    This topic created in 1291 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   ·   2368 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 49ms · UTC 01:41 · PVG 09:41 · LAX 18:41 · JFK 21:41
    ♥ Do have faith in what you're doing.