This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="container"> | |
<div class="row"> | |
<h4 class="text-primary">{{.Title2}}</h4> | |
</div> | |
<form action="" method="post"> | |
<div class="form-group"> | |
<label for="">Name</label> | |
<input type="text" name="" class="form-control" placeholder="Enter with your name"> | |
<small id="helpId" class="text-muted">Enter with your name</small> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package models | |
import ( | |
"log" | |
"net/http" | |
ctr "github.com/DiegoSantosWS/gotoweb/example_html/renderHtml" | |
) | |
//IndexPage carrega template de index |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<head> | |
<title>{{.Title}}}</title> | |
</head> | |
<div class="container"> | |
<div class="row"> | |
<p>{{.Agre}}</p><!--Exibe texto qualquer --> | |
</div> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package models | |
import ( | |
"log" | |
"net/http" | |
ctr "github.com/DiegoSantosWS/gotoweb/example_html/renderHtml" | |
) | |
//IndexPage carrega template de index |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"net/http" | |
m "github.com/DiegoSantosWS/gotoweb/example_html/models" | |
) | |
func main() { | |
//rota index |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package renderHtml | |
import "html/template" | |
var ( | |
ModelosIndex = template.Must(template.ParseFiles("view/index.html")) | |
ModelosContato = template.Must(template.ParseFiles("view/contato.html")) | |
) |