File tree Expand file tree Collapse file tree 4 files changed +468
-3
lines changed Expand file tree Collapse file tree 4 files changed +468
-3
lines changed Original file line number Diff line number Diff line change 1
1
.idea
2
2
node_modules
3
- vendor
4
3
.gitignore
5
4
* .go
6
5
* .json
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env node
2
2
const fetch = require ( 'node-fetch' ) ;
3
3
const fs = require ( 'fs' ) ;
4
- const jsonToGo = require ( '../vendor/json-to-go/json-to-go .js' ) ;
4
+ const jsonToGo = require ( '../vendor/json-to-go.js' ) ;
5
5
const buildPath = require ( '../src/buildPath' ) ;
6
6
7
7
function run ( url ) {
Original file line number Diff line number Diff line change 9
9
},
10
10
"homepage" : " https://github.com/nkmr-jp/api-to-go#readme" ,
11
11
"scripts" : {
12
- "fetch" : " rm -rf ./ vendor && mkdir -p vendor && cd vendor && git clone https://github. com/mholt/json-to-go.git " ,
12
+ "fetch" : " cd vendor && curl -OL https://raw.githubusercontent. com/mholt/json-to-go/master/json-to-go.js " ,
13
13
"setup" : " yarn install && yarn fetch && npm -f link && exec $SHELL -l"
14
14
},
15
15
"description" : " Convert REST API's JSON payload to Golang struct." ,
You can’t perform that action at this time.
0 commit comments