awesome-repositories.com
博客
MCP
awesome-repositories.com

通过 AI 驱动的搜索,发现最优秀的开源仓库。

探索精选搜索开源替代品自托管软件博客网站地图
项目MCP 服务器关于排名机制媒体报道
法律隐私政策服务条款
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
mholt avatar

mholt/json-to-go

0
View on GitHub↗
4,627 星标·483 分支·JavaScript·MIT·9 次浏览mholt.github.io/json-to-go↗

Json To Go

json-to-go 是一个基于 Web 的工具,用于从 JSON 输入自动生成 Go 结构体。它作为一个 JSON 转 Go 类型生成器,将非结构化的 JSON 数据或 API 响应转换为强类型的源代码结构。

该项目采用基于 WebAssembly 的翻译引擎,直接在浏览器中运行 Go 类型生成器。此架构利用模式推断引擎和递归类型映射来分析嵌套的 JSON 对象,并确定字段和数组对应的合适 Go 数据类型。

该工具还包含用于 API 客户端开发的实用程序,允许用户将 curl 命令行请求转换为 Go 源代码,包括必要的 HTTP 请求逻辑和类型定义。

Features

  • Go Type Generators - A utility for automatically creating Go structs from JSON input or curl command responses.
  • JSON Type Generators - Transforms JSON data samples into strongly typed Go struct definitions to ensure type safety.
  • JSON-to-Go Generators - A tool that converts JSON data into structured Go type definitions for use in source code.
  • Recursive Type Mappings - Utilizes a recursive algorithm to traverse nested JSON objects and generate corresponding nested Go struct definitions.
  • Schema Inference Engines - Includes a schema-inference engine that automatically determines the most appropriate Go data types for nested JSON fields.
  • Web-Based Schema Converters - Provides a browser-based interface for instantly transforming JSON schemas into strongly typed Go definitions.
  • WebAssembly Compilation - Compiles the translation logic to WebAssembly to run the Go type generator directly within the browser.
  • JSON and Data Parsing - Translates unstructured JSON inputs into formal Go language definitions for structured data handling.
  • API Client Generators - Generates Go source code and HTTP request logic from curl commands to accelerate API client development.
  • Curl-to-Code Converters - Provides a tool that converts curl commands into Go source code, including HTTP request logic and type definitions.

Star 历史

mholt/json-to-go 的 Star 历史图表mholt/json-to-go 的 Star 历史图表

AI 搜索

探索更多 awesome 仓库

用简单的语言描述您的需求 —— AI 将根据相关性为您从数千个精选开源项目中进行排序。

Start searching with AI

Json To Go 的开源替代方案

相似的开源项目,按与 Json To Go 的功能重合度排序。
  • stephenafamo/bobstephenafamo 的头像

    stephenafamo/bob

    1,739在 GitHub 上查看↗

    This project is a database toolkit for Go that provides schema-to-object mapping, fluent query construction, and automated code generation. It functions as a framework for type-safe database access, enabling developers to interact with relational databases by generating models and interfaces directly from existing database schemas. The toolkit distinguishes itself through a workflow that parses hand-written SQL files to generate type-safe functions, allowing for the integration of custom SQL while maintaining consistent result mapping. It supports modular customization through a plugin-based

    Godatabasegolanghacktoberfest
    在 GitHub 上查看↗1,739
  • wasm-bindgen/wasm-packwasm-bindgen 的头像

    wasm-bindgen/wasm-pack

    7,207在 GitHub 上查看↗

    wasm-pack is a build tool and workflow orchestrator for compiling Rust code to WebAssembly. It coordinates the compilation process and generates the JavaScript glue code required to execute Rust logic within web browsers and server-side runtimes. The tool manages binary optimization to reduce file sizes and improve execution speed. It also functions as a package manager, bundling compiled WebAssembly modules into archives compatible with JavaScript registries and bundlers. The project covers language interoperability through the automatic generation of TypeScript type definitions. It further

    Rust
    在 GitHub 上查看↗7,207
  • glideapps/quicktypeglideapps 的头像

    glideapps/quicktype

    13,767在 GitHub 上查看↗

    Quicktype is a multi-language serialization tool and type generator. It converts JSON samples, JSON Schema definitions, and GraphQL schemas into strongly typed data structures and serialization logic across multiple programming languages. The system automates the data serialization workflow by generating boilerplate code to parse and serialize data. It transforms structured input definitions into executable code, providing the necessary encoders and decoders to move data between raw formats and typed objects.

    TypeScriptcpluspluscsharpelm
    在 GitHub 上查看↗13,767
  • webassembly/binaryenWebAssembly 的头像

    WebAssembly/binaryen

    8,354在 GitHub 上查看↗

    Binaryen is a WebAssembly compiler toolchain and optimizer designed to transform, validate, and shrink binary modules. It provides a comprehensive intermediate representation framework that converts binary code into a single-assignment form to enable advanced program analysis and code transformation. The project includes a specialized transformation engine that applies iterative optimization passes to increase execution speed and reduce binary size. Additionally, it functions as a transpiler that translates WebAssembly binary modules into executable JavaScript for environments that lack nativ

    WebAssemblyc-plus-pluscompilersemscripten
    在 GitHub 上查看↗8,354
查看 Json To Go 的所有 30 个替代方案→

常见问题解答

mholt/json-to-go 是做什么的?

json-to-go 是一个基于 Web 的工具,用于从 JSON 输入自动生成 Go 结构体。它作为一个 JSON 转 Go 类型生成器,将非结构化的 JSON 数据或 API 响应转换为强类型的源代码结构。

mholt/json-to-go 的主要功能有哪些?

mholt/json-to-go 的主要功能包括:Go Type Generators, JSON Type Generators, JSON-to-Go Generators, Recursive Type Mappings, Schema Inference Engines, Web-Based Schema Converters, WebAssembly Compilation, JSON and Data Parsing。

mholt/json-to-go 有哪些开源替代品?

mholt/json-to-go 的开源替代品包括: webassembly/binaryen — Binaryen is a WebAssembly compiler toolchain and optimizer designed to transform, validate, and shrink binary modules.… glideapps/quicktype — Quicktype is a multi-language serialization tool and type generator. It converts JSON samples, JSON Schema… stephenafamo/bob — This project is a database toolkit for Go that provides schema-to-object mapping, fluent query construction, and… wasm-bindgen/wasm-pack — wasm-pack is a build tool and workflow orchestrator for compiling Rust code to WebAssembly. It coordinates the… canadahonk/porffor — Porffor is an ahead-of-time compiler that converts JavaScript and TypeScript source code into native machine code or C… ballercat/walt — Walt is a transpiler and typed language that converts a JavaScript-like syntax into WebAssembly binary format. It…