mirror of
https://github.com/go-kratos/kratos.git
synced 2025-01-24 03:46:37 +02:00
commit
a1839c0d68
@ -33,7 +33,7 @@ Go version>=1.13
|
||||
|
||||
### Installation
|
||||
```shell
|
||||
go get -u github.com/bilibili/kratos/tool/kratos
|
||||
GO111MODULE=on && go get -u github.com/bilibili/kratos/tool/kratos
|
||||
cd $GOPATH/src
|
||||
kratos new kratos-demo
|
||||
```
|
||||
|
@ -96,7 +96,7 @@ func buildConfigForApollo() (c *Config, err error) {
|
||||
if clusterFromEnv := os.Getenv("APOLLO_CLUSTER"); clusterFromEnv != "" {
|
||||
confCluster = clusterFromEnv
|
||||
}
|
||||
if confAppID == "" {
|
||||
if confCluster == "" {
|
||||
err = errors.New("invalid apollo cluster, pass it via APOLLO_CLUSTER=xxx with env or --apollo.cluster=xxx with flag")
|
||||
return
|
||||
}
|
||||
|
@ -166,7 +166,7 @@ func (t *swaggerGen) getOperationByHTTPMethod(httpMethod string, pathItem *swagg
|
||||
case http.MethodPut:
|
||||
pathItem.Put = op
|
||||
case http.MethodDelete:
|
||||
pathItem.Put = op
|
||||
pathItem.Delete = op
|
||||
case http.MethodPatch:
|
||||
pathItem.Patch = op
|
||||
default:
|
||||
|
Loading…
x
Reference in New Issue
Block a user