mirror of
https://github.com/containers/podman.git
synced 2026-09-16 23:59:17 -04:00
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
22 lines
619 B
Go
22 lines
619 B
Go
// SPDX-FileCopyrightText: Copyright 2015-2025 go-swagger maintainers
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
package analysis
|
|
|
|
import "github.com/go-openapi/swag/mangling"
|
|
|
|
// Option configures the behavior of a new [Spec] analyzer.
|
|
type Option func(*analyzerOptions)
|
|
|
|
type analyzerOptions struct {
|
|
manglerOpts []mangling.Option
|
|
}
|
|
|
|
// WithManglerOptions sets the name mangler options used when building
|
|
// Go identifiers from specification names (e.g. parameter names).
|
|
func WithManglerOptions(opts ...mangling.Option) Option {
|
|
return func(o *analyzerOptions) {
|
|
o.manglerOpts = append(o.manglerOpts, opts...)
|
|
}
|
|
}
|