Files
openapi-generator/samples/server/petstore/go-api-server/main.go
2016-05-27 09:42:08 -07:00

23 lines
355 B
Go

package main
import (
// WARNING!
// Change this to a fully-qualified import path
// once you place this file into your project.
// For example,
//
// sw "github.com/myname/myrepo/go"
//
sw "./go"
"log"
"net/http"
)
func main() {
log.Printf("Server started")
router := sw.NewRouter()
log.Fatal(http.ListenAndServe(":8080", router))
}