in-progress golint warning fixes (#1799)

Co-authored-by: Vishal <vishal-biyani@users.noreply.github.com>
This commit is contained in:
Ari
2020-10-28 11:44:35 +05:30
committed by GitHub
co-authored by Vishal
parent fe5542845e
commit 7743583f4d
3 changed files with 5 additions and 0 deletions
@@ -23,6 +23,7 @@ import (
"github.com/fission/fission/pkg/fission-cli/flag"
)
//Commands returns canary config commands
func Commands() *cobra.Command {
createCmd := &cobra.Command{
Use: "create",
+1
View File
@@ -23,6 +23,7 @@ import (
"github.com/fission/fission/pkg/fission-cli/flag"
)
//Commands returns support commands
func Commands() *cobra.Command {
dumpCmd := &cobra.Command{
Use: "dump",
+3
View File
@@ -12,16 +12,19 @@ import (
)
type (
// Analytics struct
Analytics struct {
id string
url string
}
// AnalyticsData struct
AnalyticsData struct {
ID string `json:"ID"`
FunctionCallCount uint64 `json:"FunctionCallCount"`
}
)
// MakeAnalytics returns Analytics if url is not empty
func MakeAnalytics(url string) *Analytics {
if len(url) == 0 {