Add go vet check (#430)

* Add go vet check

* Replace go vet with go tool vet to avoid printing exit message
This commit is contained in:
Ta-Ching Chen
2018-01-22 09:28:16 -08:00
committed by Soam Vasani
parent db372c11eb
commit 8df520721c
6 changed files with 21 additions and 5 deletions
+1 -1
View File
@@ -133,7 +133,7 @@ func ttList(c *cli.Context) error {
fmt.Fprintf(w, "%v\t%v\t%v\n", "NAME", "CRON", "FUNCTION_NAME")
for _, tt := range tts {
fmt.Fprintf(w, "%v\t%v\t%v\t%v\n",
fmt.Fprintf(w, "%v\t%v\t%v\n",
tt.Metadata.Name, tt.Spec.Cron, tt.Spec.FunctionReference.Name)
}
w.Flush()
+1 -1
View File
@@ -125,7 +125,7 @@ func wList(c *cli.Context) error {
fmt.Fprintf(w, "%v\t%v\t%v\t%v\t%v\n",
"NAME", "NAMESPACE", "OBJTYPE", "LABELS", "FUNCTION_NAME")
for _, wa := range ws {
fmt.Fprintf(w, "%v\t%v\t%v\t%v\t%v\t%v\n",
fmt.Fprintf(w, "%v\t%v\t%v\t%v\t%v\n",
wa.Metadata.Name, wa.Spec.Namespace, wa.Spec.Type, wa.Spec.LabelSelector, wa.Spec.FunctionReference.Name)
}
w.Flush()