{"modulePath":"github.com/oapi-codegen/oapi-codegen-exp/experimental","version":"v0.0.0-20260413235603-d24950bd28cc","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package codegen\n\nPackage codegen provides the public API for oapi-codegen's experimental code generator.\n\nThis package re-exports the core types and functions from the internal implementation, providing a stable public interface for external consumers.\n\n## Functions\n\n```go\nfunc Generate(doc libopenapi.Document, specData []byte, cfg Configuration) (string, error)\n```\nGenerate produces Go code from the parsed OpenAPI document. specData is the raw spec bytes used to embed the spec in the generated code.\n\n## Types\n\n```go\ntype Configuration = impl.Configuration\n```\nConfiguration is the top-level configuration for code generation.\n\n```go\ntype GenerationOptions = impl.GenerationOptions\n```\nGenerationOptions controls which parts of the code are generated.\n\n```go\ntype ModelsPackage = impl.ModelsPackage\n```\nModelsPackage specifies an external package containing the model types.\n\n```go\ntype NameMangling = impl.NameMangling\n```\nNameMangling configures how OpenAPI names are converted to Go identifiers.\n\n```go\ntype NameSubstitutions = impl.NameSubstitutions\n```\nNameSubstitutions allows direct overrides of generated names.\n\n```go\ntype OutputOptions = impl.OutputOptions\n```\nOutputOptions controls filtering of operations and schemas.\n\n```go\ntype RuntimeOutput = impl.RuntimeOutput\n```\nRuntimeOutput holds the generated code for each runtime sub-package.\n\n```go\nfunc GenerateRuntime(baseImportPath string) (*RuntimeOutput, error)\n```\nGenerateRuntime produces standalone Go source files for each of the three runtime sub-packages (types, params, helpers). baseImportPath is the base import path for the runtime module (e.g., \"github.com/org/project/runtime\").\n\n```go\ntype RuntimePackageConfig = impl.RuntimePackageConfig\n```\nRuntimePackageConfig specifies an external package containing runtime helpers.\n\n```go\ntype StructTagsConfig = impl.StructTagsConfig\n```\nStructTagsConfig configures how struct tags are generated for fields.\n\n```go\ntype TypeMapping = impl.TypeMapping\n```\nTypeMapping allows customizing OpenAPI type/format to Go type mappings.\n\n","path":"github.com/oapi-codegen/oapi-codegen-exp/experimental/codegen","name":"codegen","synopsis":"Package codegen provides the public API for oapi-codegen's experimental code generator.","isRedistributable":true}
