README.MD updates for cli installation (#3071)

This commit is contained in:
John Guo
2023-10-23 20:00:10 +08:00
committed by GitHub
parent f8462b5218
commit 36cfbaaa22
4 changed files with 5 additions and 3 deletions

View File

@ -41,7 +41,7 @@ go get -u -v github.com/gogf/gf/v2
## cli tool
```bash
go install github.com/gogf/gf/cmd/gf/v2
go install github.com/gogf/gf/cmd/gf/v2@latest
```
# Limitation

View File

@ -37,7 +37,8 @@ You can also install `gf` tool using pre-built binaries: <https://github.com/gog
## 2) Manually Install
```shell
go install github.com/gogf/gf/cmd/gf/v2
go install github.com/gogf/gf/cmd/gf/v2@latest # latest version
go install github.com/gogf/gf/cmd/gf/v2@v2.5.5 # certain version(should be >= v2.5.5)
```
## 2. Commands

View File

@ -88,6 +88,7 @@ func (s modServer) UnaryAllowNilRes(
}
// UnaryTracing is a unary interceptor for adding tracing feature for gRPC server using OpenTelemetry.
// The tracing feature is builtin enabled.
func (s modServer) UnaryTracing(
ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler,
) (interface{}, error) {

View File

@ -27,7 +27,7 @@ import (
)
// UnaryServerInterceptor returns a grpc.UnaryServerInterceptor suitable
// for use in a grpc.NewServer call.
// for usage in a grpc.NewServer call.
func UnaryServerInterceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (interface{}, error) {
tracer := otel.GetTracerProvider().Tracer(
tracingInstrumentGrpcServer,