diff options
| author | Adnan Maolood <[email protected]> | 2021-02-24 16:16:40 -0500 |
|---|---|---|
| committer | Adnan Maolood <[email protected]> | 2021-02-24 16:16:42 -0500 |
| commit | 867074d81bc3b459971ef80d9b6df4464de43d10 (patch) | |
| tree | c50076949d81ded87871d6bff07b5cd3d5163543 /examples | |
| parent | Revert "Replace uses of ioutil with io" (diff) | |
| download | go-gemini-867074d81bc3b459971ef80d9b6df4464de43d10.tar.xz go-gemini-867074d81bc3b459971ef80d9b6df4464de43d10.zip | |
examples/client: Fix display of response status
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/client.go | 2 |
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) } } |