Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 1 addition & 11 deletions modules/openapi-generator/src/main/resources/go/README.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,7 @@ For more information, please visit [{{{infoUrl}}}]({{{infoUrl}}})

## Installation

Install the following dependencies:

```sh
go get github.com/stretchr/testify/assert
{{#hasOAuthMethods}}
go get golang.org/x/oauth2
{{/hasOAuthMethods}}
go get golang.org/x/net/context
```

Put the package under your project folder and add the following in import:
Import the package in a go file in your project and run `go mod tidy`:

```go
import {{packageName}} "{{gitHost}}/{{gitUserId}}/{{gitRepoId}}{{#isGoSubmodule}}/{{packageName}}{{/isGoSubmodule}}"
Expand Down
9 changes: 1 addition & 8 deletions samples/client/echo_api/go-external-refs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,7 @@ This API client was generated by the [OpenAPI Generator](https://openapi-generat

## Installation

Install the following dependencies:

```sh
go get github.com/stretchr/testify/assert
go get golang.org/x/net/context
```

Put the package under your project folder and add the following in import:
Import the package in a go file in your project and run `go mod tidy`:

```go
import openapi "github.com/GIT_USER_ID/GIT_REPO_ID"
Expand Down
9 changes: 1 addition & 8 deletions samples/client/echo_api/go/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,7 @@ This API client was generated by the [OpenAPI Generator](https://openapi-generat

## Installation

Install the following dependencies:

```sh
go get github.com/stretchr/testify/assert
go get golang.org/x/net/context
```

Put the package under your project folder and add the following in import:
Import the package in a go file in your project and run `go mod tidy`:

```go
import openapi "github.com/GIT_USER_ID/GIT_REPO_ID"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,7 @@ This API client was generated by the [OpenAPI Generator](https://openapi-generat

## Installation

Install the following dependencies:

```sh
go get github.com/stretchr/testify/assert
go get golang.org/x/net/context
```

Put the package under your project folder and add the following in import:
Import the package in a go file in your project and run `go mod tidy`:

```go
import openapi "github.com/GIT_USER_ID/GIT_REPO_ID"
Expand Down
9 changes: 1 addition & 8 deletions samples/client/others/go/oneof-anyof-required/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,7 @@ This API client was generated by the [OpenAPI Generator](https://openapi-generat

## Installation

Install the following dependencies:

```sh
go get github.com/stretchr/testify/assert
go get golang.org/x/net/context
```

Put the package under your project folder and add the following in import:
Import the package in a go file in your project and run `go mod tidy`:

```go
import openapi "github.com/GIT_USER_ID/GIT_REPO_ID"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,7 @@ This API client was generated by the [OpenAPI Generator](https://openapi-generat

## Installation

Install the following dependencies:

```sh
go get github.com/stretchr/testify/assert
go get golang.org/x/net/context
```

Put the package under your project folder and add the following in import:
Import the package in a go file in your project and run `go mod tidy`:

```go
import openapi "github.com/GIT_USER_ID/GIT_REPO_ID"
Expand Down
10 changes: 1 addition & 9 deletions samples/client/petstore/go/go-petstore/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,7 @@ This API client was generated by the [OpenAPI Generator](https://openapi-generat

## Installation

Install the following dependencies:

```sh
go get github.com/stretchr/testify/assert
go get golang.org/x/oauth2
go get golang.org/x/net/context
```

Put the package under your project folder and add the following in import:
Import the package in a go file in your project and run `go mod tidy`:

```go
import petstore "github.com/GIT_USER_ID/GIT_REPO_ID"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,7 @@ This API client was generated by the [OpenAPI Generator](https://openapi-generat

## Installation

Install the following dependencies:

```sh
go get github.com/stretchr/testify/assert
go get golang.org/x/net/context
```

Put the package under your project folder and add the following in import:
Import the package in a go file in your project and run `go mod tidy`:

```go
import x_auth_id_alias "github.com/GIT_USER_ID/GIT_REPO_ID"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,7 @@ This API client was generated by the [OpenAPI Generator](https://openapi-generat

## Installation

Install the following dependencies:

```sh
go get github.com/stretchr/testify/assert
go get golang.org/x/oauth2
go get golang.org/x/net/context
```

Put the package under your project folder and add the following in import:
Import the package in a go file in your project and run `go mod tidy`:

```go
import petstore "github.com/GIT_USER_ID/GIT_REPO_ID"
Expand Down
10 changes: 1 addition & 9 deletions samples/openapi3/client/petstore/go-petstore-withXml/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,7 @@ This API client was generated by the [OpenAPI Generator](https://openapi-generat

## Installation

Install the following dependencies:

```sh
go get github.com/stretchr/testify/assert
go get golang.org/x/oauth2
go get golang.org/x/net/context
```

Put the package under your project folder and add the following in import:
Import the package in a go file in your project and run `go mod tidy`:

```go
import petstore "github.com/GIT_USER_ID/GIT_REPO_ID"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,7 @@ This API client was generated by the [OpenAPI Generator](https://openapi-generat

## Installation

Install the following dependencies:

```sh
go get github.com/stretchr/testify/assert
go get golang.org/x/oauth2
go get golang.org/x/net/context
```

Put the package under your project folder and add the following in import:
Import the package in a go file in your project and run `go mod tidy`:

```go
import petstore "github.com/GIT_USER_ID/GIT_REPO_ID"
Expand Down
10 changes: 1 addition & 9 deletions samples/openapi3/client/petstore/go/go-petstore/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,7 @@ This API client was generated by the [OpenAPI Generator](https://openapi-generat

## Installation

Install the following dependencies:

```sh
go get github.com/stretchr/testify/assert
go get golang.org/x/oauth2
go get golang.org/x/net/context
```

Put the package under your project folder and add the following in import:
Import the package in a go file in your project and run `go mod tidy`:

```go
import petstore "github.com/GIT_USER_ID/GIT_REPO_ID"
Expand Down
Loading