mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-05-13 13:10:53 +00:00
32 lines
590 B
Go
32 lines
590 B
Go
/*
|
|
* OpenAPI Petstore
|
|
*
|
|
* This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
|
|
*
|
|
* API version: 1.0.0
|
|
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
*/
|
|
|
|
package main
|
|
|
|
import (
|
|
"log"
|
|
|
|
// WARNING!
|
|
// Change this to a fully-qualified import path
|
|
// once you place this file into your project.
|
|
// For example,
|
|
//
|
|
//sw "github.com/GIT_USER_ID/GIT_REPO_ID/go"
|
|
//
|
|
sw "./go"
|
|
)
|
|
|
|
func main() {
|
|
log.Printf("Server started")
|
|
|
|
router := sw.NewRouter()
|
|
|
|
log.Fatal(router.Run(":8080"))
|
|
}
|