Comments (2)
Sweep: Readme file changes are not good, revert them. The rest is ok.
from rgen.
Here's the PR! #16.
⚡ Sweep Free Trial: I used GPT-4 to create this ticket. You have 4 GPT-4 tickets left. For more GPT-4 tickets, visit our payment portal.
- Install Sweep Configs: Pull Request
Step 1: 🔍 Code Search
I found the following snippets in your repository. I will now analyze these snippets and come up with a plan.
Some code snippets I looked at (click to expand). If some file is missing from here, you can mention the path in the ticket description.
Lines 1 to 190 in 66a35d1
[![Go Report Card](https://goreportcard.com/badge/github.com/alenn-m/rgen)](https://goreportcard.com/report/github.com/alenn-m/rgen) | |
[![codecov](https://codecov.io/gh/alenn-m/rgen/branch/master/graph/badge.svg)](https://codecov.io/gh/alenn-m/rgen) | |
[![Maintainability](https://api.codeclimate.com/v1/badges/85d8f959f2b9dafc56f3/maintainability)](https://codeclimate.com/github/alenn-m/rgen/maintainability) | |
## RGEN - Go (GoLang) REST code generator | |
### Installation | |
go get github.com/alenn-m/rgen/v2 | |
go install github.com/alenn-m/rgen/v2@latest | |
This will install the generator in `$GOPATH/bin`. You can execute it by calling `rgen` command. | |
### Getting started | |
Run `rgen -h` to see a list of all commands: | |
Usage: | |
[command] | |
Available Commands: | |
build Builds API from YAML file | |
generate Generates API CRUD with given configuration | |
help Help about any command | |
migration Manages database migrations | |
new Initializes the REST API | |
### Usage | |
1. `cd` into your projects directory | |
2. Run `rgen new` and answer the given questions (it will ask you which VSC you use, VSC domain and package name). | |
Your answers will determine the root package and name of your project. | |
3. Go into your newly created project and open `draft.yaml`. This file contains specification of your project. | |
4. Run `rgen build` to create REST endpoints. | |
## draft.yaml | |
After initialization of a project, the `draft.yaml` file will look like this: | |
```yaml | |
Models: | |
User: | |
Properties: | |
ApiToken: string | |
Email: string | |
FirstName: string | |
LastName: string | |
Password: string | |
Validation: | |
Email: | |
- required | |
FirstName: | |
- required | |
LastName: | |
- required | |
Password: | |
- required | |
- min:5 | |
Actions: [] | |
Relationships: {} | |
OnlyModel: false | |
Public: false | |
``` | |
All model definitions are under `Models` namespace. | |
Each model contains: | |
- Properties | |
- Actions | |
- Relationships | |
- Validation | |
- OnlyModel | |
- Public | |
#### Properties | |
This is main portion of `draft.yaml`. In this section you setup all fields for your models.\ | |
Fields are listed in `key:value` format. `key` represents the name of the field, while `value` represents the data type.\ | |
You can use any valid Go data type like: int, int64, string, float64 ... | |
#### Actions | |
Actions contain the list of CRUD actions you want to have for a specific model. By default, all CRUD actions are created.\ | |
Possible values are (case-insensitive): `index, show, create, update, delete` | |
#### Relationships | |
Relationships follow `key:value` format where `key` is the name of model the current model is related with,\ | |
and `value` is the name of relation.\ | |
Example: | |
``` | |
Relationships: | |
User: belongsTo | |
Post: hasMany | |
``` | |
Possible values are: `belongsTo, manyToMany, hasMany`.\ | |
**Warning:** IDs are not created automatically. For example if *User* has many *Posts*, you have to add *UserID*\ | |
field to *Post* model. | |
#### Validation | |
Validation field contains list of validations for each model property. This field is optional and if you omit this field, | |
all fields will be optional. | |
Behind the scene, `rgen` is using https://github.com/go-playground/validator for validations. | |
Please check the package documentation to learn which fields you can use in your application. | |
#### OnlyModel | |
OnlyModel is a boolean value which indicates if you want to only create a model.\ | |
The default value is **false**. | |
#### Public | |
Public is a boolean value which indicates if given resource is public or not. The term "public" means that users | |
don't have to login to access a particular resource. | |
The default value is **false**. | |
### File structure | |
``` | |
├── api | |
│ └── auth | |
│ ├── controller.go | |
│ ├── repositories | |
│ │ └── mysql | |
│ │ └── auth.go | |
│ ├── repository.go | |
│ └── transport.go | |
├── config.yaml | |
├── database | |
│ └── seeds | |
│ ├── DatabaseSeeder.go | |
│ └── UserSeeder.go | |
├── draft.yaml | |
├── go.mod | |
├── main.go | |
├── middleware | |
│ ├── AuthMiddleware.go | |
│ └── ExampleMiddleware.go | |
├── models | |
│ └── Base.go | |
└── util | |
├── auth | |
│ ├── auth.go | |
│ └── interface.go | |
├── cache | |
│ ├── memory | |
│ │ └── memory.go | |
│ └── service.go | |
├── paginate | |
│ └── paginate.go | |
├── req | |
│ └── req.go | |
├── resp | |
│ └── response.go | |
└── validators | |
├── Base.go | |
├── Equals.go | |
├── RecordExists.go | |
├── RecordsExists.go | |
└── Unique.go | |
``` | |
### Next steps | |
- Edit `.env` file with MySQL credentials and other configurations | |
- **Do not remove** config.yaml since this file contains global variables like *Package* which is used when generating new services. | |
- Run `go mod tidy` to install all dependencies, and you're good to go. | |
### *Generate* command | |
`rgen` allows you to create single service as well, this is useful when you want to update existing project.<br/><br/> | |
**WARNING:** `rgen` relies on various markers and file paths to add new services, if you want to use `rgen generate` command, | |
then **do not remove** markers *[services], [protected routes] and [public routes]* inside `main.go`. | |
``` | |
rgen generate -h | |
------------------------------------------- | |
Generates API CRUD with given configuration | |
Usage: | |
generate [flags] | |
Flags: | |
-a, --actions string CRUD actions --actions='index,create,show,update,delete' | |
-f, --fields string List of fields (required) --fields='Title:string, Description:string, UserID:int64' | |
-h, --help help for generate | |
-n, --name string Resource name (required) --name='ModelName' | |
--onlyModel Create only model (default = false) | |
--public Public resource (default = false) | |
``` | |
**Example:** To create a *Comment* resource with *title, body* and *user_id* fields run the following command: | |
``` | |
rgen generate -n "Comment" -f "title:string#required|min:5, body:string#required, user_id:int64#required" -a "index, create, delete" | |
``` | |
### TODO | |
- [ ] Add support for more databases (currently only *MySQL* is supported) | |
**PRs are welcome** |
Lines 165 to 358 in 66a35d1
github.com/jackc/pgconn v0.0.0-20190420214824-7e0022ef6ba3/go.mod h1:jkELnwuX+w9qN5YIfX0fl88Ehu4XC3keFuOJJk9pcnA= | |
github.com/jackc/pgconn v0.0.0-20190824142844-760dd75542eb/go.mod h1:lLjNuW/+OfW9/pnVKPazfWOgNfH2aPem8YQ7ilXGvJE= | |
github.com/jackc/pgconn v0.0.0-20190831204454-2fabfa3c18b7/go.mod h1:ZJKsE/KZfsUgOEh9hBm+xYTstcNHg7UPMVJqRfQxq4s= | |
github.com/jackc/pgconn v1.4.0/go.mod h1:Y2O3ZDF0q4mMacyWV3AstPJpeHXWGEetiFttmq5lahk= | |
github.com/jackc/pgconn v1.5.0/go.mod h1:QeD3lBfpTFe8WUnPZWN5KY/mB8FGMIYRdd8P8Jr0fAI= | |
github.com/jackc/pgconn v1.5.1-0.20200601181101-fa742c524853/go.mod h1:QeD3lBfpTFe8WUnPZWN5KY/mB8FGMIYRdd8P8Jr0fAI= | |
github.com/jackc/pgconn v1.6.0/go.mod h1:yeseQo4xhQbgyJs2c87RAXOH2i624N0Fh1KSPJya7qo= | |
github.com/jackc/pgconn v1.8.0/go.mod h1:1C2Pb36bGIP9QHGBYCjnyhqu7Rv3sGshaQUvmfGIB/o= | |
github.com/jackc/pgio v1.0.0/go.mod h1:oP+2QK2wFfUWgr+gxjoBH9KGBb31Eio69xUb0w5bYf8= | |
github.com/jackc/pgmock v0.0.0-20190831213851-13a1b77aafa2/go.mod h1:fGZlG77KXmcq05nJLRkk0+p82V8B8Dw8KN2/V9c/OAE= | |
github.com/jackc/pgpassfile v1.0.0/go.mod h1:CEx0iS5ambNFdcRtxPj5JhEz+xB6uRky5eyVu/W2HEg= | |
github.com/jackc/pgproto3 v1.1.0/go.mod h1:eR5FA3leWg7p9aeAqi37XOTgTIbkABlvcPB3E5rlc78= | |
github.com/jackc/pgproto3/v2 v2.0.0-alpha1.0.20190420180111-c116219b62db/go.mod h1:bhq50y+xrl9n5mRYyCBFKkpRVTLYJVWeCc+mEAI3yXA= | |
github.com/jackc/pgproto3/v2 v2.0.0-alpha1.0.20190609003834-432c2951c711/go.mod h1:uH0AWtUmuShn0bcesswc4aBTWGvw0cAxIJp+6OB//Wg= | |
github.com/jackc/pgproto3/v2 v2.0.0-rc3/go.mod h1:ryONWYqW6dqSg1Lw6vXNMXoBJhpzvWKnT95C46ckYeM= | |
github.com/jackc/pgproto3/v2 v2.0.0-rc3.0.20190831210041-4c03ce451f29/go.mod h1:ryONWYqW6dqSg1Lw6vXNMXoBJhpzvWKnT95C46ckYeM= | |
github.com/jackc/pgproto3/v2 v2.0.1/go.mod h1:WfJCnwN3HIg9Ish/j3sgWXnAfK8A9Y0bwXYU5xKaEdA= | |
github.com/jackc/pgproto3/v2 v2.0.2/go.mod h1:WfJCnwN3HIg9Ish/j3sgWXnAfK8A9Y0bwXYU5xKaEdA= | |
github.com/jackc/pgproto3/v2 v2.0.6/go.mod h1:WfJCnwN3HIg9Ish/j3sgWXnAfK8A9Y0bwXYU5xKaEdA= | |
github.com/jackc/pgservicefile v0.0.0-20200307190119-3430c5407db8/go.mod h1:vsD4gTJCa9TptPL8sPkXrLZ+hDuNrZCnj29CQpr4X1E= | |
github.com/jackc/pgservicefile v0.0.0-20200714003250-2b9c44734f2b/go.mod h1:vsD4gTJCa9TptPL8sPkXrLZ+hDuNrZCnj29CQpr4X1E= | |
github.com/jackc/pgtype v0.0.0-20190421001408-4ed0de4755e0/go.mod h1:hdSHsc1V01CGwFsrv11mJRHWJ6aifDLfdV3aVjFF0zg= | |
github.com/jackc/pgtype v0.0.0-20190824184912-ab885b375b90/go.mod h1:KcahbBH1nCMSo2DXpzsoWOAfFkdEtEJpPbVLq8eE+mc= | |
github.com/jackc/pgtype v0.0.0-20190828014616-a8802b16cc59/go.mod h1:MWlu30kVJrUS8lot6TQqcg7mtthZ9T0EoIBFiJcmcyw= | |
github.com/jackc/pgtype v1.2.0/go.mod h1:5m2OfMh1wTK7x+Fk952IDmI4nw3nPrvtQdM0ZT4WpC0= | |
github.com/jackc/pgtype v1.3.0/go.mod h1:b0JqxHvPmljG+HQ5IsvQ0yqeSi4nGcDTVjFoiLDb0Ik= | |
github.com/jackc/pgtype v1.3.1-0.20200510190516-8cd94a14c75a/go.mod h1:vaogEUkALtxZMCH411K+tKzNpwzCKU+AnPzBKZ+I+Po= | |
github.com/jackc/pgtype v1.3.1-0.20200606141011-f6355165a91c/go.mod h1:cvk9Bgu/VzJ9/lxTO5R5sf80p0DiucVtN7ZxvaC4GmQ= | |
github.com/jackc/pgtype v1.6.2/go.mod h1:JCULISAZBFGrHaOXIIFiyfzW5VY0GRitRr8NeJsrdig= | |
github.com/jackc/pgx v3.6.2+incompatible/go.mod h1:0ZGrqGqkRlliWnWB4zKnWtjbSWbGkVEFm4TeybAXq+I= | |
github.com/jackc/pgx/v4 v4.0.0-20190420224344-cc3461e65d96/go.mod h1:mdxmSJJuR08CZQyj1PVQBHy9XOp5p8/SHH6a0psbY9Y= | |
github.com/jackc/pgx/v4 v4.0.0-20190421002000-1b8f0016e912/go.mod h1:no/Y67Jkk/9WuGR0JG/JseM9irFbnEPbuWV2EELPNuM= | |
github.com/jackc/pgx/v4 v4.0.0-pre1.0.20190824185557-6972a5742186/go.mod h1:X+GQnOEnf1dqHGpw7JmHqHc1NxDoalibchSk9/RWuDc= | |
github.com/jackc/pgx/v4 v4.5.0/go.mod h1:EpAKPLdnTorwmPUUsqrPxy5fphV18j9q3wrfRXgo+kA= | |
github.com/jackc/pgx/v4 v4.6.0/go.mod h1:vPh43ZzxijXUVJ+t/EmXBtFmbFVO72cuneCT9oAlxAg= | |
github.com/jackc/pgx/v4 v4.6.1-0.20200510190926-94ba730bb1e9/go.mod h1:t3/cdRQl6fOLDxqtlyhe9UWgfIi9R8+8v8GKV5TRA/o= | |
github.com/jackc/pgx/v4 v4.6.1-0.20200606145419-4e5062306904/go.mod h1:ZDaNWkt9sW1JMiNn0kdYBaLelIhw7Pg4qd+Vk6tw7Hg= | |
github.com/jackc/pgx/v4 v4.10.1/go.mod h1:QlrWebbs3kqEZPHCTGyxecvzG6tvIsYu+A5b1raylkA= | |
github.com/jackc/puddle v0.0.0-20190413234325-e4ced69a3a2b/go.mod h1:m4B5Dj62Y0fbyuIc15OsIqK0+JU8nkqQjsgx7dvjSWk= | |
github.com/jackc/puddle v0.0.0-20190608224051-11cab39313c9/go.mod h1:m4B5Dj62Y0fbyuIc15OsIqK0+JU8nkqQjsgx7dvjSWk= | |
github.com/jackc/puddle v1.1.0/go.mod h1:m4B5Dj62Y0fbyuIc15OsIqK0+JU8nkqQjsgx7dvjSWk= | |
github.com/jackc/puddle v1.1.1/go.mod h1:m4B5Dj62Y0fbyuIc15OsIqK0+JU8nkqQjsgx7dvjSWk= | |
github.com/jackc/puddle v1.1.3/go.mod h1:m4B5Dj62Y0fbyuIc15OsIqK0+JU8nkqQjsgx7dvjSWk= | |
github.com/jinzhu/inflection v1.0.0 h1:K317FqzuhWc8YvSVlFMCCUb36O/S9MCKRDI7QkRKD/E= | |
github.com/jinzhu/inflection v1.0.0/go.mod h1:h+uFLlag+Qp1Va5pdKtLDYj+kHp5pxUVkryuEj+Srlc= | |
github.com/jmoiron/sqlx v1.2.0/go.mod h1:1FEQNm3xlJgrMD+FBdI9+xvCksHtbpVBBw5dYhBSsks= | |
github.com/joho/godotenv v1.3.0 h1:Zjp+RcGpHhGlrMbJzXTrZZPrWj+1vfm90La1wgB6Bhc= | |
github.com/joho/godotenv v1.3.0/go.mod h1:7hK45KPybAkOC6peb+G5yklZfMxEjkZhHbwpqxOKXbg= | |
github.com/jonboulle/clockwork v0.1.0/go.mod h1:Ii8DK3G1RaLaWxj9trq07+26W01tbo22gdxWY5EU2bo= | |
github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU= | |
github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU= | |
github.com/jtolds/gls v4.20.0+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU= | |
github.com/juju/ansiterm v0.0.0-20180109212912-720a0952cc2a h1:FaWFmfWdAUKbSCtOU2QjDaorUexogfaMgbipgYATUMU= | |
github.com/juju/ansiterm v0.0.0-20180109212912-720a0952cc2a/go.mod h1:UJSiEoRfvx3hP73CvoARgeLjaIOjybY9vj8PUPPFGeU= | |
github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w= | |
github.com/karrick/godirwalk v1.15.3/go.mod h1:j4mkqPuvaLI8mp1DroR3P6ad7cyYd4c1qeJ3RV7ULlk= | |
github.com/karrick/godirwalk v1.16.1/go.mod h1:j4mkqPuvaLI8mp1DroR3P6ad7cyYd4c1qeJ3RV7ULlk= | |
github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 h1:Z9n2FFNUXsshfwJMBgNA0RU6/i7WVaAegv3PtuIHPMs= | |
github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51/go.mod h1:CzGEWj7cYgsdH8dAjBGEr58BoE7ScuLd+fwFZ44+/x8= | |
github.com/kisielk/errcheck v1.1.0/go.mod h1:EZBBE59ingxPouuu3KfxchcWSUPOHkagtvWXihfKN4Q= | |
github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= | |
github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= | |
github.com/konsorten/go-windows-terminal-sequences v1.0.2 h1:DB17ag19krx9CFsz4o3enTrPXyIXCl+2iCXH/aMAp9s= | |
github.com/konsorten/go-windows-terminal-sequences v1.0.2/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= | |
github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc= | |
github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= | |
github.com/kr/pretty v0.2.0/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= | |
github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= | |
github.com/kr/pretty v0.3.0 h1:WgNl7dwNpEZ6jJ9k1snq4pZsg7DOEN8hP9Xw0Tsjwk0= | |
github.com/kr/pretty v0.3.0/go.mod h1:640gp4NfQd8pI5XOwp5fnNeVWj67G7CFk/SaSQn7NBk= | |
github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= | |
github.com/kr/pty v1.1.8/go.mod h1:O1sed60cT9XZ5uDucP5qwvh+TE3NnUj51EiZO/lmSfw= | |
github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= | |
github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= | |
github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= | |
github.com/lib/pq v1.0.0/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo= | |
github.com/lib/pq v1.1.0/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo= | |
github.com/lib/pq v1.2.0/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo= | |
github.com/lib/pq v1.3.0/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo= | |
github.com/luna-duclos/instrumentedsql v1.1.3/go.mod h1:9J1njvFds+zN7y85EDhN9XNQLANWwZt2ULeIC8yMNYs= | |
github.com/lunixbochs/vtclean v0.0.0-20180621232353-2d01aacdc34a h1:weJVJJRzAJBFRlAiJQROKQs8oC9vOxvm4rZmBBk0ONw= | |
github.com/lunixbochs/vtclean v0.0.0-20180621232353-2d01aacdc34a/go.mod h1:pHhQNgMf3btfWnGBVipUOjRYhoOsdGqdm/+2c2E2WMI= | |
github.com/magiconair/properties v1.8.0/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ= | |
github.com/magiconair/properties v1.8.1/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ= | |
github.com/manifoldco/promptui v0.8.0 h1:R95mMF+McvXZQ7j1g8ucVZE1gLP3Sv6j9vlF9kyRqQo= | |
github.com/manifoldco/promptui v0.8.0/go.mod h1:n4zTdgP0vr0S3w7/O/g98U+e0gwLScEXGwov2nIKuGQ= | |
github.com/markbates/errx v1.1.0/go.mod h1:PLa46Oex9KNbVDZhKel8v1OT7hD5JZ2eI7AHhA0wswc= | |
github.com/markbates/oncer v1.0.0 h1:E83IaVAHygyndzPimgUYJjbshhDTALZyXxvk9FOlQRY= | |
github.com/markbates/oncer v1.0.0/go.mod h1:Z59JA581E9GP6w96jai+TGqafHPW+cPfRxz2aSZ0mcI= | |
github.com/markbates/safe v1.0.1 h1:yjZkbvRM6IzKj9tlu/zMJLS0n/V351OZWRnF3QfaUxI= | |
github.com/markbates/safe v1.0.1/go.mod h1:nAqgmRi7cY2nqMc92/bSEeQA+R4OheNU2T1kNSCBdG0= | |
github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU= | |
github.com/mattn/go-colorable v0.1.1/go.mod h1:FuOcm+DKB9mbwrcAfNl7/TZVBZ6rcnceauSikq3lYCQ= | |
github.com/mattn/go-colorable v0.1.2/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE= | |
github.com/mattn/go-colorable v0.1.4/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE= | |
github.com/mattn/go-colorable v0.1.6 h1:6Su7aK7lXmJ/U79bYtBjLNaha4Fs1Rg9plHpcH+vvnE= | |
github.com/mattn/go-colorable v0.1.6/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= | |
github.com/mattn/go-isatty v0.0.3/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= | |
github.com/mattn/go-isatty v0.0.4/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= | |
github.com/mattn/go-isatty v0.0.5/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s= | |
github.com/mattn/go-isatty v0.0.7/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s= | |
github.com/mattn/go-isatty v0.0.8/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s= | |
github.com/mattn/go-isatty v0.0.9/go.mod h1:YNRxwqDuOph6SZLI9vUUz6OYw3QyUt7WiY2yME+cCiQ= | |
github.com/mattn/go-isatty v0.0.11/go.mod h1:PhnuNfih5lzO57/f3n+odYbM4JtupLOxQOAqxQCu2WE= | |
github.com/mattn/go-isatty v0.0.12 h1:wuysRhFDzyxgEmMf5xjvJ2M9dZoWAXNNr5LSBS7uHXY= | |
github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU= | |
github.com/mattn/go-sqlite3 v1.9.0/go.mod h1:FPy6KqzDD04eiIsT53CuJW3U88zkxoIYsOqkbpncsNc= | |
github.com/mattn/go-sqlite3 v2.0.3+incompatible/go.mod h1:FPy6KqzDD04eiIsT53CuJW3U88zkxoIYsOqkbpncsNc= | |
github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0= | |
github.com/microcosm-cc/bluemonday v1.0.2 h1:5lPfLTTAvAbtS0VqT+94yOtFnGfUWYyx0+iToC3Os3s= | |
github.com/microcosm-cc/bluemonday v1.0.2/go.mod h1:iVP4YcDBq+n/5fb23BhYFvIMq/leAFZyRl6bYmGDlGc= | |
github.com/miekg/dns v1.0.14/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg= | |
github.com/mitchellh/cli v1.0.0/go.mod h1:hNIlj7HEI86fIcpObd7a0FcrxTWetlwJDGcceTlRvqc= | |
github.com/mitchellh/go-homedir v1.0.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0= | |
github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0= | |
github.com/mitchellh/go-testing-interface v1.0.0/go.mod h1:kRemZodwjscx+RGhAo8eIhFbs2+BFgRtFPeD/KE+zxI= | |
github.com/mitchellh/gox v0.4.0/go.mod h1:Sd9lOJ0+aimLBi73mGofS1ycjY8lL3uZM3JPS42BGNg= | |
github.com/mitchellh/iochan v1.0.0/go.mod h1:JwYml1nuB7xOzsp52dPpHFffvOCDupsG0QubkSMEySY= | |
github.com/mitchellh/mapstructure v0.0.0-20160808181253-ca63d7c062ee/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= | |
github.com/mitchellh/mapstructure v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= | |
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= | |
github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= | |
github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= | |
github.com/oklog/ulid v1.3.1/go.mod h1:CirwcVhetQ6Lv90oh/F+FBtV6XMibvdAFo93nm5qn4U= | |
github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc= | |
github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic= | |
github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod h1:pJLUxLENpZxwdsKMEsNbx1VGcRFpLqf3715MtcvvzbA= | |
github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= | |
github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= | |
github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= | |
github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= | |
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= | |
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= | |
github.com/posener/complete v1.1.1/go.mod h1:em0nMJCgc9GFtwrmVmEMR/ZL6WyhyjMBndrE9hABlRI= | |
github.com/pressly/goose v2.7.0+incompatible h1:PWejVEv07LCerQEzMMeAtjuyCKbyprZ/LBa6K5P0OCQ= | |
github.com/pressly/goose v2.7.0+incompatible/go.mod h1:m+QHWCqxR3k8D9l7qfzuC/djtlfzxr34mozWDYEu1z8= | |
github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw= | |
github.com/prometheus/client_golang v0.9.3/go.mod h1:/TN21ttK/J9q6uSwhBd54HahCDft0ttaMvbicHlPoso= | |
github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= | |
github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= | |
github.com/prometheus/common v0.0.0-20181113130724-41aa239b4cce/go.mod h1:daVV7qP5qjZbuso7PdcryaAu0sAZbrN9i7WWcTMWvro= | |
github.com/prometheus/common v0.4.0/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= | |
github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= | |
github.com/prometheus/procfs v0.0.0-20190507164030-5867b95ac084/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= | |
github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU= | |
github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af/go.mod h1:XWv6SoW27p1b0cqNHllgS5HIMJraePCO15w5zCzIWYg= | |
github.com/rogpeppe/go-internal v1.1.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= | |
github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= | |
github.com/rogpeppe/go-internal v1.3.2/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc= | |
github.com/rogpeppe/go-internal v1.4.0/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc= | |
github.com/rogpeppe/go-internal v1.5.2/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc= | |
github.com/rogpeppe/go-internal v1.6.1/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc= | |
github.com/rogpeppe/go-internal v1.8.0 h1:FCbCCtXNOY3UtUuHUYaghJg4y7Fd14rXifAYUAtL9R8= | |
github.com/rogpeppe/go-internal v1.8.0/go.mod h1:WmiCO8CzOY8rg0OYDC4/i/2WRWAB6poM+XZ2dLUbcbE= | |
github.com/rs/xid v1.2.1/go.mod h1:+uKXf+4Djp6Md1KODXJxgGQPKngRmWyn10oCKFzNHOQ= | |
github.com/rs/zerolog v1.13.0/go.mod h1:YbFCdg8HfsridGWAh22vktObvhZbQsZXe4/zB0OKkWU= | |
github.com/rs/zerolog v1.15.0/go.mod h1:xYTKnLHcpfU2225ny5qZjxnj9NvkumZYjJHlAThCjNc= | |
github.com/russross/blackfriday v1.5.2/go.mod h1:JO/DiYxRf+HjHt06OyowR9PTA263kcR/rfWxYHBV53g= | |
github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= | |
github.com/ryanuber/columnize v0.0.0-20160712163229-9b3edd62028f/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts= | |
github.com/satori/go.uuid v1.2.0/go.mod h1:dA0hQrYB0VpLJoorglMZABFdXlWrHn1NEOzdhQKdks0= | |
github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529/go.mod h1:DxrIzT+xaE7yg65j358z/aeFdxmN0P9QXhEzd20vsDc= | |
github.com/sebdah/goldie/v2 v2.5.3 h1:9ES/mNN+HNUbNWpVAlrzuZ7jE+Nrczbj8uFRjM7624Y= | |
github.com/sebdah/goldie/v2 v2.5.3/go.mod h1:oZ9fp0+se1eapSRjfYbsV/0Hqhbuu3bJVvKI/NNtssI= | |
github.com/sergi/go-diff v1.0.0/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAmXWZgo= | |
github.com/sergi/go-diff v1.1.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNXdaHfM= | |
github.com/sergi/go-diff v1.2.0 h1:XU+rvMAioB0UC3q1MFrIQy4Vo5/4VsRDQQXHsEya6xQ= | |
github.com/sergi/go-diff v1.2.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNXdaHfM= | |
github.com/shopspring/decimal v0.0.0-20180709203117-cd690d0c9e24/go.mod h1:M+9NzErvs504Cn4c5DxATwIqPbtswREoFCre64PpcG4= | |
github.com/shopspring/decimal v0.0.0-20200227202807-02e2044944cc/go.mod h1:DKyhrW/HYNuLGql+MJL6WCR6knT2jwCFRcu2hWCYk4o= | |
github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc= | |
github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo= | |
github.com/sirupsen/logrus v1.4.1/go.mod h1:ni0Sbl8bgC9z8RoU9G6nDWqqs/fq4eDPysMBDgk/93Q= | |
github.com/sirupsen/logrus v1.4.2 h1:SPIRibHv4MatM3XXNO2BJeFLZwZ2LvZgfQ5+UNI2im4= | |
github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE= | |
github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod h1:OnSkiWE9lh6wB0YB77sQom3nweQdgAjqCqsofrRNTgc= | |
github.com/smartystreets/goconvey v1.6.4/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA= | |
github.com/soheilhy/cmux v0.1.4/go.mod h1:IM3LyeVVIOuxMH7sFAkER9+bJ4dT7Ms6E4xg4kGIyLM= | |
github.com/sourcegraph/annotate v0.0.0-20160123013949-f4cad6c6324d h1:yKm7XZV6j9Ev6lojP2XaIshpT4ymkqhMeSghO5Ps00E= | |
github.com/sourcegraph/annotate v0.0.0-20160123013949-f4cad6c6324d/go.mod h1:UdhH50NIW0fCiwBSr0co2m7BnFLdv4fQTgdqdJTHFeE= | |
github.com/sourcegraph/syntaxhighlight v0.0.0-20170531221838-bd320f5d308e h1:qpG93cPwA5f7s/ZPBJnGOYQNK/vKsaDaseuKT5Asee8= | |
github.com/sourcegraph/syntaxhighlight v0.0.0-20170531221838-bd320f5d308e/go.mod h1:HuIsMU8RRBOtsCgI77wP899iHVBQpCmg4ErYMZB+2IA= | |
github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= | |
github.com/spf13/afero v1.1.2/go.mod h1:j4pytiNVoe2o6bmDsKpLACNPDBIoEAkihy7loJ1B0CQ= | |
github.com/spf13/cast v1.3.0/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= | |
github.com/spf13/cobra v0.0.5/go.mod h1:3K3wKZymM7VvHMDS9+Akkh4K60UwM26emMESw8tLCHU= | |
github.com/spf13/cobra v0.0.6/go.mod h1:/6GTrnGXV9HjY+aR4k0oJ5tcvakLuG6EuKReYlHNrgE= | |
github.com/spf13/cobra v1.1.3 h1:xghbfqPkxzxP3C/f3n5DdpAbdKLj4ZE4BWQI362l53M= | |
github.com/spf13/cobra v1.1.3/go.mod h1:pGADOWyqRD/YMrPZigI/zbliZ2wVD/23d+is3pSWzOo= | |
github.com/spf13/jwalterweatherman v1.0.0/go.mod h1:cQK4TGJAtQXfYWX+Ddv3mKDzgVb68N+wFjFa4jdeBTo= | |
github.com/spf13/pflag v1.0.3/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= | |
github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= | |
github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= | |
github.com/spf13/viper v1.3.2/go.mod h1:ZiWeW+zYFKm7srdB9IoDzzZXaJaI5eL9QjNiN/DMA2s= |
Lines 1 to 269 in 66a35d1
mode: atomic | |
github.com/alenn-m/rgen/v2/generator/parser/parser.go:35.60,40.25 4 6 | |
github.com/alenn-m/rgen/v2/generator/parser/parser.go:59.2,59.19 1 3 | |
github.com/alenn-m/rgen/v2/generator/parser/parser.go:81.2,81.12 1 2 | |
github.com/alenn-m/rgen/v2/generator/parser/parser.go:40.25,43.17 2 7 | |
github.com/alenn-m/rgen/v2/generator/parser/parser.go:46.3,46.17 1 4 | |
github.com/alenn-m/rgen/v2/generator/parser/parser.go:43.17,45.4 1 3 | |
github.com/alenn-m/rgen/v2/generator/parser/parser.go:46.17,54.4 3 4 | |
github.com/alenn-m/rgen/v2/generator/parser/parser.go:54.9,54.24 1 0 | |
github.com/alenn-m/rgen/v2/generator/parser/parser.go:54.24,56.4 1 0 | |
github.com/alenn-m/rgen/v2/generator/parser/parser.go:59.19,63.26 3 2 | |
github.com/alenn-m/rgen/v2/generator/parser/parser.go:63.26,66.40 3 6 | |
github.com/alenn-m/rgen/v2/generator/parser/parser.go:73.4,73.14 1 6 | |
github.com/alenn-m/rgen/v2/generator/parser/parser.go:77.4,77.48 1 5 | |
github.com/alenn-m/rgen/v2/generator/parser/parser.go:66.40,67.32 1 18 | |
github.com/alenn-m/rgen/v2/generator/parser/parser.go:67.32,69.11 2 5 | |
github.com/alenn-m/rgen/v2/generator/parser/parser.go:73.14,75.5 1 1 | |
github.com/alenn-m/rgen/v2/generator/service_init/service_init.go:30.81,34.16 3 2 | |
github.com/alenn-m/rgen/v2/generator/service_init/service_init.go:38.2,39.35 2 2 | |
github.com/alenn-m/rgen/v2/generator/service_init/service_init.go:66.2,66.12 1 2 | |
github.com/alenn-m/rgen/v2/generator/service_init/service_init.go:34.16,36.3 1 0 | |
github.com/alenn-m/rgen/v2/generator/service_init/service_init.go:39.35,41.26 2 2 | |
github.com/alenn-m/rgen/v2/generator/service_init/service_init.go:44.3,50.27 4 2 | |
github.com/alenn-m/rgen/v2/generator/service_init/service_init.go:58.3,59.17 2 2 | |
github.com/alenn-m/rgen/v2/generator/service_init/service_init.go:63.3,63.41 1 2 | |
github.com/alenn-m/rgen/v2/generator/service_init/service_init.go:41.26,43.4 1 1 | |
github.com/alenn-m/rgen/v2/generator/service_init/service_init.go:50.27,53.4 2 1 | |
github.com/alenn-m/rgen/v2/generator/service_init/service_init.go:53.9,56.4 2 1 | |
github.com/alenn-m/rgen/v2/generator/service_init/service_init.go:59.17,61.4 1 0 | |
github.com/alenn-m/rgen/v2/generator/service_init/service_init.go:70.36,72.2 1 0 | |
github.com/alenn-m/rgen/v2/generator/service_init/service_init.go:75.43,77.2 1 2 | |
github.com/alenn-m/rgen/v2/generator/service_init/service_init.go:79.76,86.2 1 2 | |
github.com/alenn-m/rgen/v2/generator/service_init/service_init.go:88.60,90.16 2 2 | |
github.com/alenn-m/rgen/v2/generator/service_init/service_init.go:94.2,94.23 1 2 | |
github.com/alenn-m/rgen/v2/generator/service_init/service_init.go:90.16,92.3 1 0 | |
github.com/alenn-m/rgen/v2/generator/service_init/service_init.go:97.60,99.2 1 2 | |
github.com/alenn-m/rgen/v2/generator/repository/common.go:26.70,40.36 5 3 | |
github.com/alenn-m/rgen/v2/generator/repository/common.go:46.2,50.19 4 3 | |
github.com/alenn-m/rgen/v2/generator/repository/common.go:40.36,44.3 3 12 | |
github.com/alenn-m/rgen/v2/generator/repository/repository.go:28.80,32.25 3 2 | |
github.com/alenn-m/rgen/v2/generator/repository/repository.go:36.2,37.41 1 2 | |
github.com/alenn-m/rgen/v2/generator/repository/repository.go:47.2,47.16 1 2 | |
github.com/alenn-m/rgen/v2/generator/repository/repository.go:51.2,53.12 2 2 | |
github.com/alenn-m/rgen/v2/generator/repository/repository.go:32.25,34.3 1 1 | |
github.com/alenn-m/rgen/v2/generator/repository/repository.go:37.41,38.46 1 20 | |
github.com/alenn-m/rgen/v2/generator/repository/repository.go:44.4,44.16 1 0 | |
github.com/alenn-m/rgen/v2/generator/repository/repository.go:38.46,39.22 1 60 | |
github.com/alenn-m/rgen/v2/generator/repository/repository.go:39.22,41.6 1 20 | |
github.com/alenn-m/rgen/v2/generator/repository/repository.go:47.16,49.3 1 0 | |
github.com/alenn-m/rgen/v2/generator/repository/repository.go:57.35,60.16 3 1 | |
github.com/alenn-m/rgen/v2/generator/repository/repository.go:64.2,64.101 1 1 | |
github.com/alenn-m/rgen/v2/generator/repository/repository.go:60.16,62.3 1 0 | |
github.com/alenn-m/rgen/v2/generator/repository/repository.go:68.42,70.2 1 3 | |
github.com/alenn-m/rgen/v2/generator/repository/repository.go:72.57,74.2 1 1 | |
github.com/alenn-m/rgen/v2/generator/repository/repository_implementation.go:25.94,29.41 2 1 | |
github.com/alenn-m/rgen/v2/generator/repository/repository_implementation.go:42.2,42.16 1 1 | |
github.com/alenn-m/rgen/v2/generator/repository/repository_implementation.go:46.2,47.16 2 1 | |
github.com/alenn-m/rgen/v2/generator/repository/repository_implementation.go:51.2,53.12 2 1 | |
github.com/alenn-m/rgen/v2/generator/repository/repository_implementation.go:29.41,30.46 1 0 | |
github.com/alenn-m/rgen/v2/generator/repository/repository_implementation.go:36.4,36.16 1 0 | |
github.com/alenn-m/rgen/v2/generator/repository/repository_implementation.go:30.46,31.22 1 0 | |
github.com/alenn-m/rgen/v2/generator/repository/repository_implementation.go:31.22,33.6 1 0 | |
github.com/alenn-m/rgen/v2/generator/repository/repository_implementation.go:38.42,40.4 1 6 | |
github.com/alenn-m/rgen/v2/generator/repository/repository_implementation.go:42.16,44.3 1 0 | |
github.com/alenn-m/rgen/v2/generator/repository/repository_implementation.go:47.16,49.3 1 0 | |
github.com/alenn-m/rgen/v2/generator/repository/repository_implementation.go:57.49,60.16 3 1 | |
github.com/alenn-m/rgen/v2/generator/repository/repository_implementation.go:64.2,64.120 1 1 | |
github.com/alenn-m/rgen/v2/generator/repository/repository_implementation.go:60.16,62.3 1 0 | |
github.com/alenn-m/rgen/v2/generator/repository/repository_implementation.go:68.56,70.2 1 2 | |
github.com/alenn-m/rgen/v2/generator/repository/repository_implementation.go:72.60,74.2 1 2 | |
github.com/alenn-m/rgen/v2/generator/model/model.go:42.30,44.2 1 1 | |
github.com/alenn-m/rgen/v2/generator/model/model.go:47.37,49.2 1 2 | |
github.com/alenn-m/rgen/v2/generator/model/model.go:59.75,61.16 2 2 | |
github.com/alenn-m/rgen/v2/generator/model/model.go:65.2,66.16 2 1 | |
github.com/alenn-m/rgen/v2/generator/model/model.go:70.2,72.12 2 1 | |
github.com/alenn-m/rgen/v2/generator/model/model.go:61.16,63.3 1 1 | |
github.com/alenn-m/rgen/v2/generator/model/model.go:66.16,68.3 1 0 | |
github.com/alenn-m/rgen/v2/generator/model/model.go:75.76,77.36 2 2 | |
github.com/alenn-m/rgen/v2/generator/model/model.go:84.2,84.53 1 2 | |
github.com/alenn-m/rgen/v2/generator/model/model.go:97.2,103.12 2 1 | |
github.com/alenn-m/rgen/v2/generator/model/model.go:77.36,82.3 3 8 | |
github.com/alenn-m/rgen/v2/generator/model/model.go:84.53,85.23 1 5 | |
github.com/alenn-m/rgen/v2/generator/model/model.go:86.18,87.83 1 1 | |
github.com/alenn-m/rgen/v2/generator/model/model.go:88.16,89.122 1 2 | |
github.com/alenn-m/rgen/v2/generator/model/model.go:90.19,91.103 1 1 | |
github.com/alenn-m/rgen/v2/generator/model/model.go:92.11,93.33 1 1 | |
github.com/alenn-m/rgen/v2/generator/model/model.go:106.50,108.16 2 1 | |
github.com/alenn-m/rgen/v2/generator/model/model.go:112.2,113.16 2 1 | |
github.com/alenn-m/rgen/v2/generator/model/model.go:117.2,119.12 2 1 | |
github.com/alenn-m/rgen/v2/generator/model/model.go:108.16,110.3 1 0 | |
github.com/alenn-m/rgen/v2/generator/model/model.go:113.16,115.3 1 0 | |
github.com/alenn-m/rgen/v2/generator/controller/controller.go:28.80,32.41 2 1 | |
github.com/alenn-m/rgen/v2/generator/controller/controller.go:42.2,42.16 1 1 | |
github.com/alenn-m/rgen/v2/generator/controller/controller.go:46.2,48.12 2 1 | |
github.com/alenn-m/rgen/v2/generator/controller/controller.go:32.41,33.46 1 0 | |
github.com/alenn-m/rgen/v2/generator/controller/controller.go:39.4,39.16 1 0 | |
github.com/alenn-m/rgen/v2/generator/controller/controller.go:33.46,34.22 1 0 | |
github.com/alenn-m/rgen/v2/generator/controller/controller.go:34.22,36.6 1 0 | |
github.com/alenn-m/rgen/v2/generator/controller/controller.go:42.16,44.3 1 0 | |
github.com/alenn-m/rgen/v2/generator/controller/controller.go:52.35,55.16 3 1 | |
github.com/alenn-m/rgen/v2/generator/controller/controller.go:59.2,59.56 1 1 | |
github.com/alenn-m/rgen/v2/generator/controller/controller.go:55.16,57.3 1 0 | |
github.com/alenn-m/rgen/v2/generator/controller/controller.go:63.42,65.2 1 2 | |
github.com/alenn-m/rgen/v2/generator/controller/controller.go:78.75,88.36 2 1 | |
github.com/alenn-m/rgen/v2/generator/controller/controller.go:88.36,92.3 2 4 | |
github.com/alenn-m/rgen/v2/generator/controller/controller.go:95.70,99.2 2 1 | |
github.com/alenn-m/rgen/v2/generator/transport/transport.go:46.79,50.41 2 1 | |
github.com/alenn-m/rgen/v2/generator/transport/transport.go:60.2,60.16 1 1 | |
github.com/alenn-m/rgen/v2/generator/transport/transport.go:64.2,66.12 2 1 | |
github.com/alenn-m/rgen/v2/generator/transport/transport.go:50.41,51.46 1 10 | |
github.com/alenn-m/rgen/v2/generator/transport/transport.go:57.4,57.16 1 0 | |
github.com/alenn-m/rgen/v2/generator/transport/transport.go:51.46,52.22 1 30 | |
github.com/alenn-m/rgen/v2/generator/transport/transport.go:52.22,54.6 1 10 | |
github.com/alenn-m/rgen/v2/generator/transport/transport.go:60.16,62.3 1 0 | |
github.com/alenn-m/rgen/v2/generator/transport/transport.go:70.41,72.2 1 2 | |
github.com/alenn-m/rgen/v2/generator/transport/transport.go:75.34,77.2 1 1 | |
github.com/alenn-m/rgen/v2/generator/transport/transport.go:79.76,88.36 2 1 | |
github.com/alenn-m/rgen/v2/generator/transport/transport.go:88.36,90.3 1 0 | |
github.com/alenn-m/rgen/v2/generator/transport/transport.go:93.54,95.16 2 1 | |
github.com/alenn-m/rgen/v2/generator/transport/transport.go:99.2,102.16 3 1 | |
github.com/alenn-m/rgen/v2/generator/transport/transport.go:106.2,108.12 2 1 | |
github.com/alenn-m/rgen/v2/generator/transport/transport.go:95.16,97.3 1 0 | |
github.com/alenn-m/rgen/v2/generator/transport/transport.go:102.16,104.3 1 0 | |
github.com/alenn-m/rgen/v2/generator/migration/foreign_keys.go:20.37,23.22 3 0 | |
github.com/alenn-m/rgen/v2/generator/migration/foreign_keys.go:29.2,30.25 2 0 | |
github.com/alenn-m/rgen/v2/generator/migration/foreign_keys.go:34.2,34.42 1 0 | |
github.com/alenn-m/rgen/v2/generator/migration/foreign_keys.go:35.2,35.91 1 0 | |
github.com/alenn-m/rgen/v2/generator/migration/foreign_keys.go:23.22,25.3 1 0 | |
github.com/alenn-m/rgen/v2/generator/migration/foreign_keys.go:25.8,27.3 1 0 | |
github.com/alenn-m/rgen/v2/generator/migration/foreign_keys.go:30.25,33.3 2 0 | |
github.com/alenn-m/rgen/v2/generator/migration/foreign_keys.go:34.42,34.64 1 0 | |
github.com/alenn-m/rgen/v2/generator/migration/foreign_keys.go:38.71,41.9 3 7 | |
github.com/alenn-m/rgen/v2/generator/migration/foreign_keys.go:44.2,44.22 1 7 | |
github.com/alenn-m/rgen/v2/generator/migration/foreign_keys.go:47.2,47.37 1 7 | |
github.com/alenn-m/rgen/v2/generator/migration/foreign_keys.go:54.2,54.17 1 7 | |
github.com/alenn-m/rgen/v2/generator/migration/foreign_keys.go:41.9,43.3 1 0 | |
github.com/alenn-m/rgen/v2/generator/migration/foreign_keys.go:44.22,46.3 1 0 | |
github.com/alenn-m/rgen/v2/generator/migration/foreign_keys.go:47.37,49.45 2 7 | |
github.com/alenn-m/rgen/v2/generator/migration/foreign_keys.go:49.45,51.4 1 7 | |
github.com/alenn-m/rgen/v2/generator/migration/migration.go:39.79,43.43 3 1 | |
github.com/alenn-m/rgen/v2/generator/migration/migration.go:52.2,59.16 2 1 | |
github.com/alenn-m/rgen/v2/generator/migration/migration.go:63.2,63.12 1 1 | |
github.com/alenn-m/rgen/v2/generator/migration/migration.go:43.43,45.17 2 4 | |
github.com/alenn-m/rgen/v2/generator/migration/migration.go:49.3,49.37 1 4 | |
github.com/alenn-m/rgen/v2/generator/migration/migration.go:45.17,47.4 1 0 | |
github.com/alenn-m/rgen/v2/generator/migration/migration.go:59.16,61.3 1 0 | |
github.com/alenn-m/rgen/v2/generator/migration/migration.go:67.34,69.16 2 3 | |
github.com/alenn-m/rgen/v2/generator/migration/migration.go:73.2,77.12 4 3 | |
github.com/alenn-m/rgen/v2/generator/migration/migration.go:69.16,71.3 1 0 | |
github.com/alenn-m/rgen/v2/generator/migration/migration.go:81.41,83.2 1 2 | |
github.com/alenn-m/rgen/v2/generator/migration/migration.go:85.74,93.2 1 1 | |
github.com/alenn-m/rgen/v2/generator/migration/migration.go:95.65,101.16 3 1 | |
github.com/alenn-m/rgen/v2/generator/migration/migration.go:105.2,105.34 1 1 | |
github.com/alenn-m/rgen/v2/generator/migration/migration.go:113.2,114.16 2 1 | |
github.com/alenn-m/rgen/v2/generator/migration/migration.go:118.2,119.16 2 1 | |
github.com/alenn-m/rgen/v2/generator/migration/migration.go:123.2,123.65 1 1 | |
github.com/alenn-m/rgen/v2/generator/migration/migration.go:135.2,136.16 2 1 | |
github.com/alenn-m/rgen/v2/generator/migration/migration.go:140.2,140.12 1 1 | |
github.com/alenn-m/rgen/v2/generator/migration/migration.go:101.16,103.3 1 0 | |
github.com/alenn-m/rgen/v2/generator/migration/migration.go:105.34,108.79 2 4 | |
github.com/alenn-m/rgen/v2/generator/migration/migration.go:108.79,110.4 1 0 | |
github.com/alenn-m/rgen/v2/generator/migration/migration.go:114.16,116.3 1 0 | |
github.com/alenn-m/rgen/v2/generator/migration/migration.go:119.16,121.3 1 0 | |
github.com/alenn-m/rgen/v2/generator/migration/migration.go:123.65,124.37 1 3 | |
github.com/alenn-m/rgen/v2/generator/migration/migration.go:124.37,129.18 3 1 | |
github.com/alenn-m/rgen/v2/generator/migration/migration.go:129.18,131.5 1 0 | |
github.com/alenn-m/rgen/v2/generator/migration/migration.go:136.16,138.3 1 0 | |
github.com/alenn-m/rgen/v2/generator/migration/migration.go:143.81,145.16 2 3 | |
github.com/alenn-m/rgen/v2/generator/migration/migration.go:149.2,150.16 2 3 | |
github.com/alenn-m/rgen/v2/generator/migration/migration.go:154.2,163.16 4 3 | |
github.com/alenn-m/rgen/v2/generator/migration/migration.go:167.2,170.12 3 3 | |
github.com/alenn-m/rgen/v2/generator/migration/migration.go:145.16,147.3 1 0 | |
github.com/alenn-m/rgen/v2/generator/migration/migration.go:150.16,152.3 1 0 | |
github.com/alenn-m/rgen/v2/generator/migration/migration.go:163.16,165.3 1 0 | |
github.com/alenn-m/rgen/v2/generator/migration/migration.go:173.50,174.28 1 4 | |
github.com/alenn-m/rgen/v2/generator/migration/migration.go:175.48,176.19 1 0 | |
github.com/alenn-m/rgen/v2/generator/migration/migration.go:177.26,178.21 1 0 | |
github.com/alenn-m/rgen/v2/generator/migration/migration.go:179.27,180.16 1 0 | |
github.com/alenn-m/rgen/v2/generator/migration/migration.go:181.40,182.17 1 0 | |
github.com/alenn-m/rgen/v2/generator/migration/migration.go:183.50,184.21 1 0 | |
github.com/alenn-m/rgen/v2/generator/migration/migration.go:185.59,186.21 1 0 | |
github.com/alenn-m/rgen/v2/generator/migration/migration.go:187.20,188.17 1 0 | |
github.com/alenn-m/rgen/v2/generator/migration/migration.go:189.20,190.17 1 0 | |
github.com/alenn-m/rgen/v2/generator/migration/migration.go:191.37,192.19 1 0 | |
github.com/alenn-m/rgen/v2/generator/migration/migration.go:193.24,194.16 1 0 | |
github.com/alenn-m/rgen/v2/generator/migration/migration.go:195.10,196.37 1 4 | |
github.com/alenn-m/rgen/v2/generator/migration/migration.go:199.3,199.28 1 4 | |
github.com/alenn-m/rgen/v2/generator/migration/migration.go:196.37,198.4 1 0 | |
github.com/alenn-m/rgen/v2/generator/migration/pivot_migration.go:27.82,30.2 2 1 | |
github.com/alenn-m/rgen/v2/generator/migration/pivot_migration.go:33.43,36.32 2 1 | |
github.com/alenn-m/rgen/v2/generator/migration/pivot_migration.go:64.2,69.36 2 1 | |
github.com/alenn-m/rgen/v2/generator/migration/pivot_migration.go:88.2,88.12 1 1 | |
github.com/alenn-m/rgen/v2/generator/migration/pivot_migration.go:36.32,62.3 12 3 | |
github.com/alenn-m/rgen/v2/generator/migration/pivot_migration.go:69.36,78.17 3 2 | |
github.com/alenn-m/rgen/v2/generator/migration/pivot_migration.go:82.3,83.17 2 2 | |
github.com/alenn-m/rgen/v2/generator/migration/pivot_migration.go:78.17,80.4 1 0 | |
github.com/alenn-m/rgen/v2/generator/migration/pivot_migration.go:83.17,85.4 1 0 | |
github.com/alenn-m/rgen/v2/generator/migration/tables.go:26.32,28.2 1 0 | |
github.com/alenn-m/rgen/v2/generator/migration/tables.go:31.30,36.30 4 3 | |
github.com/alenn-m/rgen/v2/generator/migration/tables.go:40.2,40.16 1 3 | |
github.com/alenn-m/rgen/v2/generator/migration/tables.go:47.2,47.25 1 3 | |
github.com/alenn-m/rgen/v2/generator/migration/tables.go:59.2,59.25 1 3 | |
github.com/alenn-m/rgen/v2/generator/migration/tables.go:71.2,71.28 1 3 | |
github.com/alenn-m/rgen/v2/generator/migration/tables.go:79.2,79.30 1 3 | |
github.com/alenn-m/rgen/v2/generator/migration/tables.go:83.2,83.35 1 3 | |
github.com/alenn-m/rgen/v2/generator/migration/tables.go:86.2,87.22 2 3 | |
github.com/alenn-m/rgen/v2/generator/migration/tables.go:36.30,39.3 2 3 | |
github.com/alenn-m/rgen/v2/generator/migration/tables.go:40.16,41.43 1 3 | |
github.com/alenn-m/rgen/v2/generator/migration/tables.go:42.3,42.97 1 3 | |
github.com/alenn-m/rgen/v2/generator/migration/tables.go:41.43,41.65 1 0 | |
github.com/alenn-m/rgen/v2/generator/migration/tables.go:43.8,45.3 1 0 | |
github.com/alenn-m/rgen/v2/generator/migration/tables.go:47.25,48.31 1 0 | |
github.com/alenn-m/rgen/v2/generator/migration/tables.go:48.31,49.56 1 0 | |
github.com/alenn-m/rgen/v2/generator/migration/tables.go:52.4,52.55 1 0 | |
github.com/alenn-m/rgen/v2/generator/migration/tables.go:49.56,50.13 1 0 | |
github.com/alenn-m/rgen/v2/generator/migration/tables.go:54.8,55.31 1 3 | |
github.com/alenn-m/rgen/v2/generator/migration/tables.go:55.31,57.4 1 11 | |
github.com/alenn-m/rgen/v2/generator/migration/tables.go:59.25,61.3 1 0 | |
github.com/alenn-m/rgen/v2/generator/migration/tables.go:61.8,61.26 1 3 | |
github.com/alenn-m/rgen/v2/generator/migration/tables.go:61.26,63.34 1 0 | |
github.com/alenn-m/rgen/v2/generator/migration/tables.go:66.3,66.34 1 0 | |
github.com/alenn-m/rgen/v2/generator/migration/tables.go:63.34,65.4 1 0 | |
github.com/alenn-m/rgen/v2/generator/migration/tables.go:66.34,68.4 1 0 | |
github.com/alenn-m/rgen/v2/generator/migration/tables.go:71.28,73.36 2 2 | |
github.com/alenn-m/rgen/v2/generator/migration/tables.go:76.3,76.81 1 2 | |
github.com/alenn-m/rgen/v2/generator/migration/tables.go:73.36,75.4 1 4 | |
github.com/alenn-m/rgen/v2/generator/migration/tables.go:79.30,81.3 1 0 | |
github.com/alenn-m/rgen/v2/generator/migration/tables.go:83.35,85.3 1 5 | |
github.com/alenn-m/rgen/v2/generator/migration/tables.go:91.49,92.25 1 3 | |
github.com/alenn-m/rgen/v2/generator/migration/tables.go:97.2,97.13 1 3 | |
github.com/alenn-m/rgen/v2/generator/migration/tables.go:92.25,93.38 1 6 | |
github.com/alenn-m/rgen/v2/generator/migration/tables.go:93.38,95.4 1 0 | |
github.com/alenn-m/rgen/v2/generator/migration/tables.go:101.63,102.17 1 4 | |
github.com/alenn-m/rgen/v2/generator/migration/tables.go:106.2,112.3 1 4 | |
github.com/alenn-m/rgen/v2/generator/migration/tables.go:102.17,104.3 1 0 | |
github.com/alenn-m/rgen/v2/generator/migration/tables.go:116.81,117.45 1 13 | |
github.com/alenn-m/rgen/v2/generator/migration/tables.go:120.2,121.37 2 13 | |
github.com/alenn-m/rgen/v2/generator/migration/tables.go:128.2,134.27 2 13 | |
github.com/alenn-m/rgen/v2/generator/migration/tables.go:137.2,139.18 2 13 | |
github.com/alenn-m/rgen/v2/generator/migration/tables.go:144.2,144.78 1 13 | |
github.com/alenn-m/rgen/v2/generator/migration/tables.go:148.2,148.12 1 13 | |
github.com/alenn-m/rgen/v2/generator/migration/tables.go:117.45,119.3 1 0 | |
github.com/alenn-m/rgen/v2/generator/migration/tables.go:121.37,122.27 1 1 | |
github.com/alenn-m/rgen/v2/generator/migration/tables.go:125.3,126.33 2 1 | |
github.com/alenn-m/rgen/v2/generator/migration/tables.go:122.27,124.4 1 0 | |
github.com/alenn-m/rgen/v2/generator/migration/tables.go:134.27,136.3 1 0 | |
github.com/alenn-m/rgen/v2/generator/migration/tables.go:139.18,141.3 1 0 | |
github.com/alenn-m/rgen/v2/generator/migration/tables.go:141.8,143.3 1 13 | |
github.com/alenn-m/rgen/v2/generator/migration/tables.go:144.78,147.3 1 0 | |
github.com/alenn-m/rgen/v2/generator/migration/tables.go:152.32,154.2 1 3 | |
github.com/alenn-m/rgen/v2/generator/migration/tables.go:157.46,159.2 1 0 | |
github.com/alenn-m/rgen/v2/generator/migration/tables.go:162.89,164.16 2 7 | |
github.com/alenn-m/rgen/v2/generator/migration/tables.go:167.2,173.28 2 7 | |
github.com/alenn-m/rgen/v2/generator/migration/tables.go:183.2,184.12 2 7 | |
github.com/alenn-m/rgen/v2/generator/migration/tables.go:164.16,166.3 1 0 | |
github.com/alenn-m/rgen/v2/generator/migration/tables.go:173.28,176.10 3 0 | |
github.com/alenn-m/rgen/v2/generator/migration/tables.go:176.10,178.4 1 0 | |
github.com/alenn-m/rgen/v2/generator/migration/tables.go:179.8,181.3 1 7 | |
github.com/alenn-m/rgen/v2/generator/migration/tables.go:189.48,190.18 1 3 | |
github.com/alenn-m/rgen/v2/generator/migration/tables.go:193.2,193.26 1 3 | |
github.com/alenn-m/rgen/v2/generator/migration/tables.go:196.2,196.26 1 3 | |
github.com/alenn-m/rgen/v2/generator/migration/tables.go:199.2,199.18 1 3 | |
github.com/alenn-m/rgen/v2/generator/migration/tables.go:207.2,209.12 3 3 | |
github.com/alenn-m/rgen/v2/generator/migration/tables.go:190.18,192.3 1 0 | |
github.com/alenn-m/rgen/v2/generator/migration/tables.go:193.26,195.3 1 0 | |
github.com/alenn-m/rgen/v2/generator/migration/tables.go:196.26,198.3 1 0 | |
github.com/alenn-m/rgen/v2/generator/migration/tables.go:199.18,200.31 1 0 | |
github.com/alenn-m/rgen/v2/generator/migration/tables.go:200.31,201.23 1 0 | |
github.com/alenn-m/rgen/v2/generator/migration/tables.go:201.23,203.10 2 0 |
Lines 420 to 571 in 66a35d1
golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028/go.mod h1:E/iHnbuqvinMTCcRqshq8CkpyQDoeVncDDYHnLhea+o= | |
golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc= | |
golang.org/x/mod v0.1.0/go.mod h1:0QHyrYULN0/3qlju5TqG8bIK38QM8yzMo5ekMj3DlcY= | |
golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= | |
golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= | |
golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= | |
golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= | |
golang.org/x/net v0.0.0-20181023162649-9b4f9f5ad519/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= | |
golang.org/x/net v0.0.0-20181114220301-adae6a3d119a/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= | |
golang.org/x/net v0.0.0-20181201002055-351d144fa1fc/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= | |
golang.org/x/net v0.0.0-20181220203305-927f97764cc3/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= | |
golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= | |
golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= | |
golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= | |
golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= | |
golang.org/x/net v0.0.0-20190501004415-9ce7a6920f09/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= | |
golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= | |
golang.org/x/net v0.0.0-20190522155817-f3200d17e092/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= | |
golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= | |
golang.org/x/net v0.0.0-20190613194153-d28f0bde5980/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= | |
golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= | |
golang.org/x/net v0.0.0-20190813141303-74dc4d7220e7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= | |
golang.org/x/net v0.0.0-20200202094626-16171245cfb2/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= | |
golang.org/x/net v0.0.0-20200219183655-46282727080f/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= | |
golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= | |
golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2 h1:CIJ76btIcR3eFI5EgSo6k1qKw9KJexJuRLI9G7Hp5wE= | |
golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= | |
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= | |
golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= | |
golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= | |
golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= | |
golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= | |
golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= | |
golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= | |
golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= | |
golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e h1:vcxGaoTs7kV8m5Np9uUNQin4BrLOthgV7252N8V+FwY= | |
golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= | |
golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= | |
golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= | |
golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= | |
golang.org/x/sys v0.0.0-20181026203630-95b1ffbd15a5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= | |
golang.org/x/sys v0.0.0-20181107165924-66b7b1311ac8/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= | |
golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= | |
golang.org/x/sys v0.0.0-20181122145206-62eef0e2fa9b/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= | |
golang.org/x/sys v0.0.0-20181205085412-a5c9d58dba9a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= | |
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= | |
golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= | |
golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= | |
golang.org/x/sys v0.0.0-20190403152447-81d4e9dc473e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= | |
golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= | |
golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= | |
golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= | |
golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= | |
golang.org/x/sys v0.0.0-20190515120540-06a5c4944438/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= | |
golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= | |
golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= | |
golang.org/x/sys v0.0.0-20190813064441-fde4db37ae7a/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= | |
golang.org/x/sys v0.0.0-20190826190057-c7b8b68b1456/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= | |
golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= | |
golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= | |
golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= | |
golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= | |
golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= | |
golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= | |
golang.org/x/sys v0.0.0-20210806184541-e5e7981a1069 h1:siQdpVirKtzPhKl3lZWozZraCFObP8S1v6PRp0bLrtU= | |
golang.org/x/sys v0.0.0-20210806184541-e5e7981a1069/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= | |
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1 h1:v+OssWQX+hTHEmOBgwxdZxK4zHq3yOs8F9J7mk0PY8E= | |
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= | |
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= | |
golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= | |
golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= | |
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= | |
golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= | |
golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= | |
golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= | |
golang.org/x/tools v0.0.0-20180221164845-07fd8470d635/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= | |
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= | |
golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= | |
golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= | |
golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= | |
golang.org/x/tools v0.0.0-20190312151545-0bb0c0a6e846/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= | |
golang.org/x/tools v0.0.0-20190312170243-e65039ee4138/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= | |
golang.org/x/tools v0.0.0-20190328211700-ab21143f2384/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= | |
golang.org/x/tools v0.0.0-20190425150028-36563e24a262/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= | |
golang.org/x/tools v0.0.0-20190425163242-31fd60d6bfdc/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= | |
golang.org/x/tools v0.0.0-20190506145303-2d16b83fe98c/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= | |
golang.org/x/tools v0.0.0-20190606124116-d0a3d012864b/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= | |
golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= | |
golang.org/x/tools v0.0.0-20190628153133-6cdbf07be9d0/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= | |
golang.org/x/tools v0.0.0-20190816200558-6889da9d5479/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= | |
golang.org/x/tools v0.0.0-20190823170909-c4a336ef6a2f/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= | |
golang.org/x/tools v0.0.0-20190911174233-4f2ddba30aff/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= | |
golang.org/x/tools v0.0.0-20191004055002-72853e10c5a3/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= | |
golang.org/x/tools v0.0.0-20191012152004-8de300cfc20a/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= | |
golang.org/x/tools v0.0.0-20191029041327-9cc4af7d6b2c/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= | |
golang.org/x/tools v0.0.0-20191029190741-b9c20aec41a5/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= | |
golang.org/x/tools v0.0.0-20191112195655-aa38f8e97acc/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= | |
golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= | |
golang.org/x/tools v0.0.0-20200117220505-0cba7a3a9ee9/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= | |
golang.org/x/tools v0.0.0-20200308013534-11ec41452d41/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= | |
golang.org/x/xerrors v0.0.0-20190410155217-1f06c39b4373/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= | |
golang.org/x/xerrors v0.0.0-20190513163551-3ee3066db522/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= | |
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= | |
golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= | |
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= | |
google.golang.org/api v0.4.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEtwE= | |
google.golang.org/api v0.7.0/go.mod h1:WtwebWUNSVBH/HAw79HIFXZNqEvBhG+Ra+ax0hx3E3M= | |
google.golang.org/api v0.8.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= | |
google.golang.org/api v0.9.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= | |
google.golang.org/api v0.13.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= | |
google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= | |
google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= | |
google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= | |
google.golang.org/appengine v1.6.1/go.mod h1:i06prIuMbXzDqacNJfV5OdTW448YApPu5ww/cMBSeb0= | |
google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= | |
google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= | |
google.golang.org/genproto v0.0.0-20190418145605-e7d98fc518a7/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= | |
google.golang.org/genproto v0.0.0-20190425155659-357c62f0e4bb/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= | |
google.golang.org/genproto v0.0.0-20190502173448-54afdca5d873/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= | |
google.golang.org/genproto v0.0.0-20190801165951-fa694d86fc64/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= | |
google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= | |
google.golang.org/genproto v0.0.0-20190911173649-1774047e7e51/go.mod h1:IbNlFCBrqXvoKpeg0TB2l7cyZUmoaFKYIwrEpbDKLA8= | |
google.golang.org/genproto v0.0.0-20191108220845-16a3f7862a1a/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= | |
google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= | |
google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= | |
google.golang.org/grpc v1.21.0/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= | |
google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= | |
gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw= | |
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= | |
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= | |
gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= | |
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= | |
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= | |
gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI= | |
gopkg.in/inconshreveable/log15.v2 v2.0.0-20180818164646-67afb5ed74ec/go.mod h1:aPpfJ7XW+gOuirDoZ8gHhLh3kZ1B08FtV2bbmy7Jv3s= | |
gopkg.in/ini.v1 v1.51.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= | |
gopkg.in/resty.v1 v1.12.0/go.mod h1:mDo4pnntr5jdWRML875a/NmxYqAlA73dVijT2AXvQQo= | |
gopkg.in/yaml.v2 v2.0.0-20170812160011-eb3733d160e7/go.mod h1:JAlM8MvJe8wmxCU4Bli9HhUf9+ttbYbLASfIpnQbh74= | |
gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= | |
gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= | |
gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= | |
gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= | |
gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= | |
gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= | |
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= | |
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b h1:h8qDotaEPuJATrMmW04NCwg7v22aHH28wwpauUhK9Oo= | |
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= | |
honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= | |
honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= | |
honnef.co/go/tools v0.0.0-20190418001031-e561f6794a2a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= | |
honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg= | |
rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8= |
Lines 1 to 125 in 66a35d1
package model | |
import ( | |
_ "embed" | |
"errors" | |
"fmt" | |
"io/ioutil" | |
"path/filepath" | |
"sort" | |
"strings" | |
"github.com/alenn-m/rgen/v2/generator/parser" | |
"github.com/alenn-m/rgen/v2/util/config" | |
"github.com/alenn-m/rgen/v2/util/files" | |
"github.com/alenn-m/rgen/v2/util/templates" | |
"github.com/iancoleman/strcase" | |
"github.com/jinzhu/inflection" | |
) | |
//go:embed "template.tmpl" | |
var TEMPLATE string | |
// ErrInvalidRelationship - returned when relationship is not valid | |
var ErrInvalidRelationship = errors.New("invalid relationship") | |
// BelongsTo - belongsToMany relationship | |
const BelongsTo = "belongsTo" | |
// HasMany - hasMany relationship | |
const HasMany = "hasMany" | |
// ManyToMany - manyToMany relationship | |
const ManyToMany = "manyToMany" | |
var dir = "models" | |
// Model generator | |
type Model struct { | |
parsedData parsedData | |
} | |
// Save saves the generated content to file | |
func (m *Model) Save() error { | |
return m.createFile(m.GetContent()) | |
} | |
// GetContent content getter | |
func (m *Model) GetContent() string { | |
return m.parsedData.Content | |
} | |
type parsedData struct { | |
Model string | |
Fields string | |
Package string | |
Content string | |
} | |
// Generate generates the '{MODEL}.go' file | |
func (m *Model) Generate(input *parser.Parser, conf *config.Config) error { | |
err := m.parseData(input, conf) | |
if err != nil { | |
return err | |
} | |
content, err := templates.ParseTemplate(TEMPLATE, m.parsedData, nil) | |
if err != nil { | |
return err | |
} | |
m.parsedData.Content = content | |
return nil | |
} | |
func (m *Model) parseData(input *parser.Parser, conf *config.Config) error { | |
fields := fmt.Sprintf("ID %sID `json:\"id\" db:\"%sID\"`\n", input.Name, strcase.ToCamel(input.Name)) | |
for _, item := range input.Fields { | |
camelName := strcase.ToCamel(item.Key) | |
snakeName := strcase.ToSnake(item.Key) | |
fields += fmt.Sprintf("%s %s `json:\"%s\"`\n", camelName, item.Value, snakeName) | |
} | |
relationshipKeys := []string{} | |
for item := range input.Relationships { | |
relationshipKeys = append(relationshipKeys, item) | |
} | |
sort.Strings(relationshipKeys) | |
for _, key := range relationshipKeys { | |
relationship := input.Relationships[key] | |
switch relationship { | |
case BelongsTo: | |
fields += fmt.Sprintf("%s *%s `json:\"%s\"`\n", key, key, strcase.ToSnake(key)) | |
case HasMany: | |
fields += fmt.Sprintf("%s []%s `json:\"%s\"`\n", inflection.Plural(key), key, strcase.ToSnake(inflection.Plural(key))) | |
case ManyToMany: | |
fields += fmt.Sprintf("%s []%s `json:\"%s\"`\n", inflection.Plural(key), key, strcase.ToSnake(key)) | |
default: | |
return ErrInvalidRelationship | |
} | |
} | |
m.parsedData = parsedData{ | |
Model: inflection.Singular(strings.Title(input.Name)), | |
Fields: fields, | |
Package: conf.Package, | |
} | |
return nil | |
} | |
func (m *Model) createFile(content string) error { | |
location, err := filepath.Abs(dir) | |
if err != nil { | |
return err | |
} | |
err = files.MakeDirIfNotExist(location) | |
if err != nil { | |
return err | |
} | |
Step 2: 🧐 Snippet Analysis
From looking through the relevant snippets, I decided to make the following modifications:
File Path | Proposed Changes |
---|---|
README.md |
Revert the changes made to this file. Restore it to its previous state as per the user's request. |
Step 3: 📝 Planning
I have created a plan for writing the pull request. I am now working my plan and coding the required changes to address this issue. Here is the planned pull request:
Revert changes to README.md
sweep/revert-readme-changes
Description
This PR reverts the changes made to the README.md file as per the user's request.
Changes Made
- Restored the README.md file to its previous state.
Checklist
- Tested the changes locally
- Updated the documentation
- Reviewed the code changes
Related Issues
Closes #{issue_number}
Step 4: ⌨️ Coding
I have finished coding the issue. I am now reviewing it for completeness.
Step 5: 🔁 Code Review
Success! 🚀
I'm a bot that handles simple bugs and feature requests but I might make mistakes. Please be kind!
Join Our Discord
from rgen.
Related Issues (5)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rgen.