Online Golang Struct to TypeScript Interface Converter

This page summarizes the projects mentioned and recommended in the original post on /r/golang

Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • go2ts

    Online Golang Struct to TypeScript Interface Converter

  • JSON-to-Go

    Translates JSON into a Go type in your browser instantly (original)

  • There's 2 other notable tools that do Go structs to TS interfaces, but they also did way too much extra stuff for our use case, plus they worked via Go generate and I didn't want to use something that way. I love the way the popular JSON to Go page works, and I wanted something similar.

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

    SurveyJS logo
  • typescriptify-golang-structs

    A Golang struct to TypeScript class/interface converter

  • I'm curious if you looked at https://github.com/tkrajina/typescriptify-golang-structs, and if so, what it does that you didn't want.

  • typex

    [TOOL/CLI] - Filter and examine Go type structures, interfaces and their transitive dependencies and relationships. Export structural types as TypeScript value object or bare type representations.

  • FWIW: https://github.com/dtgorski/typex

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts