Skip to content

Commit 8f8694f

Browse files
author
Abramovich Misha
committed
updated README file
1 parent 91a9148 commit 8f8694f

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ The generated code can be used, for example, to simplify work with the database
77
Gen-struct-fields can be installed as any other go command:
88

99
```
10-
go get github.com/abramlab/gen-struct-fields
10+
go get github.com/abramlab/gen-struct-fields@v0.1.2
1111
```
1212
After that, the `gen-struct-fields` executable will be in "$GOPATH/bin" folder, and you can use it with `go generate`
1313

@@ -36,6 +36,13 @@ gen-struct-fields -struct=User,Car,Plane -tag=custom_tag -custom_name=user,,plan
3636
```
3737
will generate fields for ```User,Car,Plane``` structs with custom names for ```User``` and ```Plane```.
3838

39+
40+
If you want to specify custom tag name(by default it is `field`), use "-tag":
41+
42+
```
43+
gen-struct-fields -struct=User -custom_name=user -tag=custom_tag
44+
```
45+
3946
## Simple example
4047

4148
Initial data:

0 commit comments

Comments
 (0)