21 مستودعات
Frameworks and utilities for generating code during build or design time.
Explore 21 awesome GitHub repositories matching part of an awesome list · Code Generation Tools. Refine with filters or upvote what's useful.
sqlc is a SQL compiler and code generator that creates type-safe database client code from raw SQL queries. It transforms SQL statements into typed definitions and functions, eliminating the need for manual row mapping between database results and application structures. The tool ensures compile-time safety by validating SQL queries against the database schema before the application is run. This workflow integrates the database schema directly into the application code, deriving types from the underlying SQL definitions to prevent runtime errors. The system utilizes AST-based query analysis
Generates type-safe Go code from SQL.
gotests هي أداة تحليل ثابت ومولد للكود المبدئي (boilerplate) للغة Go، تقوم بإنشاء مجموعات اختبار منظمة تلقائياً من الكود المصدري. تعمل كإطار عمل للاختبارات المعتمدة على الجداول (table-driven tests) وتتعامل مع حل الأنواع (type resolution) للدوال والأساليب، بما في ذلك تعيين قيود الأنواع العامة (generic type constraints) إلى أنواع تنفيذية محددة. تتكامل الأداة مع نماذج لغوية كبيرة (LLMs) لتوليد قيم إدخال واقعية وحالات حافة (edge cases) بناءً على منطق الدالة. تستخدم نظام توليد يعتمد على القوالب، مما يسمح بتخصيص هيكل وتنسيق كود الاختبار الناتج من خلال قوالب ومعاملات خارجية. يوفر المشروع أدوات سطر أوامر (CLI) لمسح الحزم بشكل متكرر ومعالجة شجرة الدليل. كما يتضمن آليات للتحكم في النطاق لاختيار الدوال باستخدام التعبيرات النمطية (regex) ومعدلات الرؤية.
Generates table-driven unit tests from source code.
Jennifer is a code generator for Go
Go code generation library.
Automatically generate Go (golang) struct definitions from example JSON
Generates Go structs from JSON.
Elegant generics for Go
Provides elegant generic code generation.
Converts a database into gorm structs and RESTful api
Generates Go structs from database schemas.
Tools to let you use Roslyn-powered C# scripts for code generation. You can think of it as a scripted alternative to T4 templates.
Scripted alternative to T4 templates for code generation.
Assists in performing Roslyn-based code generation during a build. This includes design-time support, such that code generation can respond to changes made in hand-authored code files by generating new code that shows up to Intellisense as soon as the file is saved to disk.
Build-time code generation with design-time support.
Testura.Code is a wrapper around the Roslyn API and used for generation, saving and compiling C# code. It provides methods and helpers to generate classes, methods, statements and expressions.
Wrapper for generating, saving, and compiling C# code.
The Uno source generator is an API compatible source generator inspired by Roslyn v2.0 source generation feature, and an msbuild task which executes the SourceGenerators.
Source generator utilizing full syntactic and semantic model information.