22 lines
579 B
Go
22 lines
579 B
Go
|
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"),
|
||
|
)
|
||
|
}
|