Add home to struct

This commit is contained in:
Eliot Whalan 2016-06-23 21:00:46 +10:00
parent 82d977eb85
commit 552dffe453
2 changed files with 3 additions and 2 deletions

View File

@ -36,7 +36,7 @@
<div class="pull-right">
<div class="row">
<a href="{{.Link}}" class="btn btn-raised btn-primary">Home</a>
<a href="{{.Home}}" class="btn btn-raised btn-primary">Home</a>
<a href="{{.Raw}}" class="btn btn-raised btn-primary">Raw</a>
</div>

View File

@ -41,7 +41,8 @@ type Response struct {
type Page struct {
Title string
Body []byte
Link string
Raw string
Home string
}
func check(err error) {