Stats API: added GetMemory()
[govpp.git] / examples / simple-client / simple_client.go
index 10a0ea6..3be2447 100644 (file)
@@ -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)
 }