diff --git a/main.go b/main.go index c08bc86..adb5320 100644 --- a/main.go +++ b/main.go @@ -3,7 +3,7 @@ package main import "fmt" const ( - productPath string = "/tmp/products.json" + productPath string = "/tmp/products.json" sellerPath string = "/tmp/sellers.json" ) @@ -17,9 +17,9 @@ func main() { var i GenericInterface i = &s - givenCity := "Gotham" + givenCity := "Gotham" - switch i.(type) { + switch i.(type) { case interface{}: fmt.Println("What to do") case Product: @@ -31,6 +31,5 @@ func main() { func appendData() { var s []string - s = append(s, productPath) - s = append(s, sellerPath) + s = append(s, productPath, sellerPath) }