mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-08-14 12:49:36 +00:00
|
|
||
|---|---|---|
| .. | ||
| internal | ||
| .codecov.yml | ||
| .editorconfig | ||
| .gitattributes | ||
| .gitignore | ||
| .golangci.yml | ||
| .mockery.yml | ||
| api.go | ||
| CODE_OF_CONDUCT.md | ||
| CONTRIBUTORS.md | ||
| diagnostics.go | ||
| doc.go | ||
| errors.go | ||
| LICENSE | ||
| README.md | ||
| SECURITY.md | ||
codescan
A Go source code scanner that produces Swagger 2.0 (OpenAPI 2.0) specifications from annotated Go source files.
Supports Go modules (since go1.11).
Announcements
- 2025-04-19 : large package layout reshuffle
- the entire project is being refactored to restore a reasonable level of maintenability
- the only exposed API is Run() and Options.
Status
API is stable.
Import this library in your project
go get github.com/go-openapi/codescan
Basic usage
import (
"github.com/go-openapi/codescan"
)
swaggerSpec, err := codescan.Run(&codescan.Options{
Packages: []string{"./..."},
})
Change log
See https://github.com/go-openapi/codescan/releases
Licensing
This library ships under the SPDX-License-Identifier: Apache-2.0.
See the license NOTICE, which recalls the licensing terms of all the pieces of software on top of which it has been built.
Other documentation
Cutting a new release
Maintainers can cut a new release by either:
- running this workflow
- or pushing a semver tag
- signed tags are preferred
- The tag message is prepended to release notes