@goqoo/gotenks
v0.3.2
Published
CLI tool to generate Go type definitions from kintone TypeScript .d.ts files
Maintainers
Readme
gotenks
CLI tool to generate Go type definitions from kintone TypeScript .d.ts files.
Installation
npm install @goqoo/gotenksOr use npx without installation:
npx @goqoo/gotenks ./fields.d.ts -o ./gen/Usage
# Convert all .d.ts files in a directory
gotenks ./dts -o ./gen/kintone
# Convert a single file
gotenks ./customer-fields.d.ts -o ./customer.go
# Specify package name
gotenks ./dts -o ./gen -package myappOptions
| Option | Short | Default | Description |
|--------|-------|---------|-------------|
| -output | -o | stdout | Output .go file or directory |
| -package | | kintone | Package name for generated Go code |
| -prefix | | K | Prefix for field names |
Using Generated Code
Generated Go code imports the types package. Add it as a dependency:
go get github.com/goqoo-on-kintone/gotenks/types@latestMore Information
See the GitHub repository for full documentation.
License
MIT
