From 734671b51458d92ddb394b97d9e009e06d9b37bd Mon Sep 17 00:00:00 2001 From: Philippe ALEXANDRE Date: Tue, 12 Jun 2018 09:16:26 +0000 Subject: [PATCH] Correct example of how to use contiv go client --- contivmodel/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/contivmodel/README.md b/contivmodel/README.md index 1283648c4..7afa1e118 100644 --- a/contivmodel/README.md +++ b/contivmodel/README.md @@ -8,7 +8,7 @@ This is how current object model looks like: ### Using go client Here is an example of how to use contiv go client -``` +```golang package main import ( @@ -30,9 +30,9 @@ func main() { } // Create policy - err = cl.PostPolicy(policy) + err = cl.PolicyPost(&policy) if err != nil { - log.Errorf("Policy Creation failed. Err: %v", err) + log.Fatalf("Policy Creation failed. Err: %v", err) } } ```