Categories
Golang

Write a simple calculator with go

What is calculator Calculator – Wikipedia So basically, calculator is used to calculate the result after apply different operations on numbers. The things that made up the calculation expression assume we have an calculation expression: (1+2)*(10 / 5) – 3 we can see that there are serveral kinds of things: left parenthesis right parenthesis numbers […]

Categories
Golang

use go module

Enable go module in vscode. Init the root module Get the dependency package list all dependency Upgrade one dependency Remove unused dependency

Categories
Golang

Understand gRPC-GO – part1- the components

the gRPC version: v1.0.1-GA The who gRPC code base have several components server transport clientconn rpc_utils metadata credentials codes call Server the server is mainly contain the gRPC server struct, service struct and main flow functions to handle grpc requests. Transport the transport package mainly contain the underlying communication mechanism(HTTP2 protocol) implementation and interface(ServerTransport, ClientTransport) […]