All Projects → fabien0102 → go2dts

fabien0102 / go2dts

Licence: other
A simple cli-tools to transform golang `struct` and `const` to typescript `interface` and `type`

Programming Languages

go
31211 projects - #10 most used programming language
javascript
184084 projects - #8 most used programming language
HCL
1544 projects

Labels

Projects that are alternatives of or similar to go2dts

graphql-cli-codegen
apollo-codegen plugin for graphql-cli
Stars: ✭ 22 (-50%)
Mutual labels:  codegen
gqty
a GraphQL client built for rapid iteration
Stars: ✭ 420 (+854.55%)
Mutual labels:  codegen
graphql-java-codegen
Make your GraphQL Java application schema-driven.
Stars: ✭ 167 (+279.55%)
Mutual labels:  codegen
ogen
OpenAPI v3 code generator for go
Stars: ✭ 436 (+890.91%)
Mutual labels:  codegen
domainrobot-api
Swagger documentation for different APIs powered by InterNetX GmbH.
Stars: ✭ 14 (-68.18%)
Mutual labels:  codegen
qpmodel
A Relational Optimizer and Executor
Stars: ✭ 54 (+22.73%)
Mutual labels:  codegen
startle
Startle C Library
Stars: ✭ 15 (-65.91%)
Mutual labels:  codegen
vertx-codegen
Vert.x code generator for asynchronous polyglot APIs
Stars: ✭ 95 (+115.91%)
Mutual labels:  codegen
EasyEE-Auto
EasyEE 自动化代码生成器。EasyEE Automated code generator.
Stars: ✭ 39 (-11.36%)
Mutual labels:  codegen
TypedocConverter
This is a typedoc json to C# type bindings converter. Can be used as a TypeScript to C# bindings converter.
Stars: ✭ 89 (+102.27%)
Mutual labels:  codegen
graphql-java-codegen-gradle-plugin
Gradle plugin for graphql-java-codegen
Stars: ✭ 19 (-56.82%)
Mutual labels:  codegen
graphql-codegen-apollo-next-ssr
Autogenerate apollo code for nextjs ssr
Stars: ✭ 176 (+300%)
Mutual labels:  codegen
aws-mobile-appsync-sdk-android
Android SDK for AWS AppSync.
Stars: ✭ 101 (+129.55%)
Mutual labels:  codegen
graphql-ts-client
Typescript DSL for GraphQL.
Stars: ✭ 124 (+181.82%)
Mutual labels:  codegen
react-native-xaml
A React Native Windows library to use XAML / WinUI controls
Stars: ✭ 55 (+25%)
Mutual labels:  codegen
butte
No description or website provided.
Stars: ✭ 69 (+56.82%)
Mutual labels:  codegen
sbt-guardrail
Principled code generation from OpenAPI specifications
Stars: ✭ 24 (-45.45%)
Mutual labels:  codegen
revgen
Speed up go:generate by auto detecting code changes
Stars: ✭ 20 (-54.55%)
Mutual labels:  codegen
apollo-typed-documents
Get type safety for your apollo documents.
Stars: ✭ 21 (-52.27%)
Mutual labels:  codegen
codegen
Generator for dart_native bindings. Codegen can transform native SDK to Flutter plugin.
Stars: ✭ 75 (+70.45%)
Mutual labels:  codegen

Go2dts

logo

A simple cli-tools to transform golang struct and const to typescript interface and type

Installation

npm i -g go2dts

Usage

go2dts <goLangDirs ...> <typescriptFile>

Testing and developing

Just put your golang file into __tests__/inputs and it will be parse each time you execute npm test or npm start.

npm start is more quick, so perfect to add some console.log and improve the parsing.

npm test --watch generate a snapshot, so you can just update this one to the expecting state and start coding to have everything green #TDDStyle

Know issues

  • The type mapping is incomplete (I'm not a golang developper, so I add types when I discover them)
  • This library will not follow the import dependencies, so the output types can be broken
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].