Categorygithub.com/mozey/go2ts
modulepackage
0.1.0
Repository: https://github.com/mozey/go2ts.git
Documentation: pkg.go.dev

# README

go2ts

Code for Convert func copied from StirlingMarketingGroup/go2ts. This repo can be imported as a package for generating TypeScript from Go as part of a build workflow. Supports Go types StructType and ArrayType

Testing

Run all tests

git clone https://github.com/mozey/go2ts.git
cd go2ts
go test -v ./...

Demo

Run demo with deno.

Using TypeScript types that were generated from Go code

deno run testdata/example/demo/app.ts

Type usage is statically checked

deno run testdata/example/demo/err.ts

# Functions

No description provided by the author
ReadTypes for all files in packagePath.

# Variables

No description provided by the author
TSTypePrefix to use when generating the TypeScript types.