jsonToGo

try to take over the world!

المؤلف
378978764
التثبيت اليومي
0
إجمالي التثبيت
3
التقييمات
0 0 0
الإصدار
0.1
تم إنشاؤه
05-05-2020
تم تحديثه
05-05-2020
Size
10.5 KB
الترخيص
لا يوجد
ينطبق على
جميع المواقع

json2type

Convert json to golang, typescript, python3 type declaration.

Usage

1、Install tampermonkey. 2、Open browser console. 3、In the console, following commands are supported:

json text to golang type declaration

input:

document.jsonToGo('{"name":"user","age":18}')

output:

type AutoGenerated struct {
    Name string `json:"name"`
    Age int `json:"age"`
}

json text to typescript type declaration

input:

document.jsonToTs('{"name":"user","age":18}')

output:

{
  name: string,
  age: number
}