aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorAdnan Maolood <[email protected]>2021-02-24 16:16:40 -0500
committerAdnan Maolood <[email protected]>2021-02-24 16:16:42 -0500
commit867074d81bc3b459971ef80d9b6df4464de43d10 (patch)
treec50076949d81ded87871d6bff07b5cd3d5163543 /examples
parentRevert "Replace uses of ioutil with io" (diff)
downloadgo-gemini-867074d81bc3b459971ef80d9b6df4464de43d10.tar.xz
go-gemini-867074d81bc3b459971ef80d9b6df4464de43d10.zip
examples/client: Fix display of response status
Diffstat (limited to 'examples')
-rw-r--r--examples/client.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/client.go b/examples/client.go
index ef3d387..adf3a6f 100644
--- a/examples/client.go
+++ b/examples/client.go
@@ -162,7 +162,7 @@ func main() {
log.Fatal(err)
}
} else {
- fmt.Printf("%d %s\n", resp.Status, resp.Meta)
+ fmt.Printf("%d %s\n", resp.Status(), resp.Meta())
os.Exit(1)
}
}