fiber_docs/examples/swagger.go

22 lines
579 B
Go
Raw Permalink Normal View History

2023-04-11 20:43:48 +00:00
package main
import (
"git.ma-al.com/goc_marek/fiber_docs/swagger"
"github.com/getkin/kin-openapi/openapi3"
)
func NewSwagger() *swagger.Swagger {
return swagger.New("Fibers", "Swagger + Fiber = Fibers", "0.1.0",
swagger.License(&openapi3.License{
Name: "Apache License 2.0",
URL: "https://git.ma-al.com/goc_marek/fiber_docs/blob/dev/LICENSE",
}),
swagger.Contact(&openapi3.Contact{
Name: "long2ice",
URL: "https://git.ma-al.com/goc_marek/fiber_docs",
Email: "long2ice@gmail.com",
}),
swagger.TermsOfService("https://github.com/long2ice"),
)
}