summary refs log tree commit diff stats
path: root/apod
diff options
context:
space:
mode:
authorAndinus <andinus@nand.sh>2020-03-25 00:13:51 +0530
committerAndinus <andinus@nand.sh>2020-03-25 00:13:51 +0530
commit3ee3715ae7777dd6c1804974e2e293406fd1fe54 (patch)
treef035e76ff9ce48d03299381d03906eaff76140dc /apod
parent28e35c0b0b996e17bd94a5b9e78fda90086ba85e (diff)
downloadcetus-3ee3715ae7777dd6c1804974e2e293406fd1fe54.tar.gz
Add apod support & fix errors
Diffstat (limited to 'apod')
-rw-r--r--apod/json.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/apod/json.go b/apod/json.go
index c6da815..eae5fb2 100644
--- a/apod/json.go
+++ b/apod/json.go
@@ -5,7 +5,7 @@ import (
 	"fmt"
 	"regexp"
 
-	"framagit.org/andinus/cetus/pkg/request"
+	"tildegit.org/andinus/cetus/request"
 )
 
 // APOD holds the response from the api. Not every field is returned
@@ -27,7 +27,7 @@ type APOD struct {
 }
 
 // UnmarshalJson will take body as input & unmarshal it to res.
-func UnmarshalJson(res *Res, body string) error {
+func UnmarshalJson(res *APOD, body string) error {
 	err := json.Unmarshal([]byte(body), res)
 	if err != nil {
 		err = fmt.Errorf("json.go: unmarshalling json failed\n%s",