diff --git a/fixtures/go-app/main.go b/fixtures/go-app/main.go index 7f41608..f6fb14e 100644 --- a/fixtures/go-app/main.go +++ b/fixtures/go-app/main.go @@ -9,10 +9,13 @@ import ( "net/http" "os" "strings" - - "github.com/sclevine/cflocal/service" ) +type vcapService struct { + Name string `json:"name"` + Credentials map[string]interface{} `json:"credentials"` +} + func main() { contents, err := ioutil.ReadFile("file") if err != nil { @@ -32,7 +35,7 @@ func main() { }) http.HandleFunc("/services", func(w http.ResponseWriter, r *http.Request) { - vcapServices := map[string][]service.Service{} + vcapServices := map[string][]vcapService{} if err := json.Unmarshal([]byte(os.Getenv("VCAP_SERVICES")), &vcapServices); err != nil { w.WriteHeader(http.StatusInternalServerError) fmt.Fprintf(w, "%s\n", err)