Skip to content

Commit f9d718f

Browse files
committed
📄 Add LICENSE
1 parent 9d5d14e commit f9d718f

File tree

4 files changed

+32
-15
lines changed

4 files changed

+32
-15
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
.idea
22
node_modules
3+
vendor
34
.gitignore
45
*.go
56
tmp

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2022 nkmr-jp
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,19 @@
11
# api-to-go
22

3+
Convert Rest API's JSON payload to Golang struct.
4+
35
# Install
46
```sh
5-
npm install -g @nkmr-jp/api-to-go
7+
git clone https://github.com/nkmr-jp/api-to-go.git
8+
cd api-to-go
9+
yarn install
10+
yarn fetch
11+
npm link
612
```
713

814
# Usage
915
```sh
10-
api-to-go https://api.github.com/users
16+
api-to-go https://api.github.com/users/github
1117
```
1218

1319
```sh
@@ -42,13 +48,3 @@ type Users []struct {
4248
SiteAdmin bool `json:"site_admin"`
4349
}
4450
```
45-
46-
# Development
47-
48-
```sh
49-
# Make the command available
50-
npm link
51-
52-
# Run Command
53-
api-to-go https://api.github.com/users/github
54-
```

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nkmr-jp/api-to-go",
3-
"version": "0.0.4",
3+
"version": "1.0.0",
44
"repository": "[email protected]:nkmr-jp/api-to-go.git",
55
"author": "nkmr-jp <[email protected]>",
66
"license": "MIT",
@@ -9,8 +9,7 @@
99
},
1010
"homepage": "https://github.com/nkmr-jp/api-to-go#readme",
1111
"scripts": {
12-
"patch-release": "npm version patch && npm publish --access=public && git push --follow-tags",
13-
"fetch": "mkdir -p vendor && cd vendor && git clone https://github.com/mholt/json-to-go.git"
12+
"fetch": "rm -rf ./vendor && mkdir -p vendor && cd vendor && git clone https://github.com/mholt/json-to-go.git"
1413
},
1514
"description": "Convert Rest API's JSON payload to Golang struct.",
1615
"bin": {

0 commit comments

Comments
 (0)