jsonToGo

try to take over the world!

Автор
378978764
Щоденних встановлень
0
Всього встановлень
3
Рейтинги
0 0 0
Версія
0.1
Створено
05.05.2020
Оновлено
05.05.2020
Size
10,5 кБ
Ліцензія
Н/Д
Відноситься до
Всі сайти

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
}