ZhangZhihui's Blog  

2024年4月17日

摘要: FROM --platform=$BUILDPLATFORM alpine as protoc ARG BUILDPLATFORM=linux/amd64 TARGETOS=linux TARGETARCH=amd64 # download the protoc binary from github 阅读全文
posted @ 2024-04-17 21:10 ZhangZhihuiAAA 阅读(2) 评论(0) 推荐(0) 编辑
 
摘要: Use this URL: https://www.google.com/ncr 阅读全文
posted @ 2024-04-17 19:25 ZhangZhihuiAAA 阅读(1) 评论(0) 推荐(0) 编辑
 
摘要: # download dependencies and build RUN go mod download RUN CGO_ENABLED=0 GOOS=$TARGETOS GOARCH=$TARGETARCH go build -ldflags="-s -w" -o /go/bin/server 阅读全文
posted @ 2024-04-17 18:40 ZhangZhihuiAAA 阅读(1) 评论(0) 推荐(0) 编辑
 
摘要: An Overview Alright, let’s get started with the details. The guide is split up into the following topics: Frequent Misconceptions The Dot-Env File (.e 阅读全文
posted @ 2024-04-17 10:26 ZhangZhihuiAAA 阅读(3) 评论(0) 推荐(0) 编辑

2024年4月16日

摘要: This is because I forgot doing this: 阅读全文
posted @ 2024-04-16 22:15 ZhangZhihuiAAA 阅读(4) 评论(0) 推荐(0) 编辑
 
摘要: #!/bin/bash # Create the server CA certs. openssl req -x509 \ -newkey rsa:4096 \ -nodes \ -days 3650 \ -keyout ca_key.pem \ -out ca_cert.pem \ -subj / 阅读全文
posted @ 2024-04-16 22:07 ZhangZhihuiAAA 阅读(1) 评论(0) 推荐(0) 编辑
 
摘要: You can inspect the response within the reply argument after the gRPC call is made. One of the arguments of the unary interceptor is the invoker funct 阅读全文
posted @ 2024-04-16 21:15 ZhangZhihuiAAA 阅读(0) 评论(0) 推荐(0) 编辑
 
摘要: zzh@ZZHPC:~/aaa$ cat a.sh echo ${BASH_SOURCE[0]} abpath=$(realpath ${BASH_SOURCE[0]}) echo $abpath dir=$(dirname $abpath) echo $dir zzh@ZZHPC:~/aaa$ . 阅读全文
posted @ 2024-04-16 20:29 ZhangZhihuiAAA 阅读(1) 评论(0) 推荐(0) 编辑

2024年4月15日

摘要: This is because you didn't register the service. After adding below code the error disappeared: pb.RegisterTodoServiceServer(s, &server{ d: NewDb(), } 阅读全文
posted @ 2024-04-15 19:18 ZhangZhihuiAAA 阅读(4) 评论(0) 推荐(0) 编辑
 
摘要: Click the "configure" link and input the the following: 阅读全文
posted @ 2024-04-15 11:14 ZhangZhihuiAAA 阅读(1) 评论(0) 推荐(0) 编辑