()
| 39 | } |
| 40 | |
| 41 | func main() { |
| 42 | port := flag.Int("port", 8080, "Port for test HTTP server") |
| 43 | flag.Parse() |
| 44 | // Create an instance of our handler which satisfies the generated interface |
| 45 | petStore := api.NewPetStore() |
| 46 | s := NewIrisPetServer(petStore, *port) |
| 47 | |
| 48 | // And we serve HTTP until the world ends. |
| 49 | log.Fatal(s.Listen(fmt.Sprintf("localhost:%d", *port))) |
| 50 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…