Skip to content

Commit 3dd6012

Browse files
committed
⬆️ Add json-to-go.js file to repository.
1 parent 919f818 commit 3dd6012

File tree

4 files changed

+468
-3
lines changed

4 files changed

+468
-3
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
.idea
22
node_modules
3-
vendor
43
.gitignore
54
*.go
65
*.json

bin/api-to-go.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#! /usr/bin/env node
22
const fetch = require('node-fetch');
33
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');
55
const buildPath = require('../src/buildPath');
66

77
function run(url) {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
},
1010
"homepage": "https://github.com/nkmr-jp/api-to-go#readme",
1111
"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",
1313
"setup": "yarn install && yarn fetch && npm -f link && exec $SHELL -l"
1414
},
1515
"description": "Convert REST API's JSON payload to Golang struct.",

0 commit comments

Comments
 (0)