codegen

package module
v0.0.0-...-bb97fcc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 12, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

README

codegen

Tests Coverage CI vuln scan CodeQL

Release Go Report Card CodeFactor Grade License

GoDoc Discord Channel go version Top language Commits since latest release


Tools to generate and test golang code.

Status

Work in progress.

Import this library in your project

go get github.com/go-openapi/codegen/{module}

Contents

go-openapi/codegen exposes a collection of code generation tools and utilities.

  • formatting: go code formatting, including imports resolution and go.mod formatting
  • funcmaps: useful pre-assembled funcmaps
  • genapp: a composable app-generator to build clean, formatted go code
  • gentesting: tools to test generated code from their behavior and desired properties
  • mangling: name mangling utilities to produce clean go identifiers
  • templates-repo: a repository to cache templates with a unified namespace

Dependencies

The root module github.com/go-openapi/codegen at the repo level maintains a few dependencies outside of the standard library.

TBD


Note to contributors

All kinds of contributions are welcome.

This repo is a go mono-repo.

More general guidelines are available here.

Roadmap

TODO

Change log

See https://github.com/go-openapi/codegen/releases

Licensing

This library ships under the SPDX-License-Identifier: Apache-2.0.

Cutting a new release

Maintainers can cut a new release by running:

Documentation

Overview

Package codegen exposes utilities to build and test code generators that build go apps.

Directories

Path Synopsis
Package language provides the language-specific options used by the go-swagger code generator.
Package language provides the language-specific options used by the go-swagger code generator.
funcmaps
golang
Package golang provides the Go-specific template function map used by the go-swagger code generator.
Package golang provides the Go-specific template function map used by the go-swagger code generator.
Package gentesting provides test utilities for code generation.
Package gentesting provides test utilities for code generation.
mangling module

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL