Add home to struct

This commit is contained in:
Eliot Whalan 2016-06-23 21:00:46 +10:00
parent 07180d93fb
commit 8dc7a3f7d1
No known key found for this signature in database
GPG Key ID: C0A42175139840D6
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) {