You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
memos/proto/openapi_embed.go

12 lines
228 B
Go

package proto
import _ "embed"
//go:embed gen/openapi.yaml
var openAPIYAML []byte
// OpenAPIYAML returns the embedded generated OpenAPI specification.
func OpenAPIYAML() []byte {
return append([]byte(nil), openAPIYAML...)
}