aboutsummaryrefslogtreecommitdiffstats
path: root/examples/simple-client/simple_client.go
diff options
context:
space:
mode:
authorVladimir Lavor <vlavor@cisco.com>2020-10-29 12:56:24 +0100
committerOndrej Fabry <ofabry@cisco.com>2020-10-30 12:39:24 +0000
commitb74e3b37479a7fa763bed1f2c76de612ee51dcbc (patch)
tree3a632ae21f54ba41a480b27d97c7332240ff257c /examples/simple-client/simple_client.go
parent0f46871b4cc45f2c3bd5bdb0aa0f7615795a2c6d (diff)
Stats API: added GetMemory()
Retrieved numbers relate to the statseg heap. Change-Id: I72750183db3524481918c71c993b39e65c28ddb6 Signed-off-by: Vladimir Lavor <vlavor@cisco.com>
Diffstat (limited to 'examples/simple-client/simple_client.go')
-rw-r--r--examples/simple-client/simple_client.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/simple-client/simple_client.go b/examples/simple-client/simple_client.go
index 10a0ea6..3be2447 100644
--- a/examples/simple-client/simple_client.go
+++ b/examples/simple-client/simple_client.go
@@ -74,8 +74,8 @@ func main() {
// process errors encountered during the example
defer func() {
- if len(Errors) > 0 {
- fmt.Printf("finished with %d errors\n", len(Errors))
+ if len(errors) > 0 {
+ fmt.Printf("finished with %d errors\n", len(errors))
os.Exit(1)
} else {
fmt.Println("finished successfully")
@@ -302,9 +302,9 @@ func marshal(v interface{}) {
fmt.Printf("JSON: %s\n", b)
}
-var Errors []error
+var errors []error
func logError(err error, msg string) {
fmt.Printf("ERROR: %s: %v\n", msg, err)
- Errors = append(Errors, err)
+ errors = append(errors, err)
}