Description
I'm working on this project. At the function named profile in main.go, I tried to pass Username and Email info to the template and render, and it won't render the passed strings but blanks. The template works properly (I checked this with other pages), and I think the problem is in passing the variables to the template. I wonder how this problem can be solved.
How to reproduce
With server running by this project, try connect to localhost:80/profile/junhg0211@gmail.com.
Expectations
$ curl http://localhost:80/profile/junhg0211@gmail.com
…
<header>
<div class="inset">
<h1>Sch</h1>
<p>junhg0211@gmail.com</p>
</div>
</header>
…
Actual result
$ curl http://localhost:80/profile/junhg0211@gmail.com
…
<header>
<div class="inset">
<h1>
</h1>
<p>
</p>
</div>
</header>
…
Environment
- go version: go1.16.4
- gin version (or commit ref): v1.7.7
- operating system: windows/amd64