Go
preface This article represents bloggers to officially start learning and using Go. In their previous work, they mainly used a dynamic, interpretive and object-oriented language. Yes, you guessed right! It's PHP. Go is a compiled static language. It is doubtful whether it is object-oriented desUTF-8...
Posted by DaveLinger on Mon, 20 Sep 2021 23:55:16 +0530
preface Installation: go get -u github.com/gin-gonic/gin Import: Import "GitHub. COM / gin Gonic / gin" Auxiliary package: import "net/http" (used when using status code such as http.StatusOK) Note: according to Official website Tip: you need a Go language compiler of 1.13 or above to use the UTF-8...
Posted by ruuyx on Thu, 23 Sep 2021 17:07:02 +0530
Preface Whether it's for debugging or whatever. We often need to print the structure or some value in our work. A pretty print format can bring us a good mood. The key is to improve the efficiency of our debugging, and see where the problem is. So how can we print? Let's start with a structure:UTF-8...
Posted by rapmonkey on Thu, 23 Sep 2021 22:20:56 +0530
The strconv package in the Go language converts the basic data types to and from their string representations. func main() { // String type data cannot be strongly converted to string type directly using int. When input data is passed into string(), it is recognized as a character correspondinUTF-8...
Posted by amavadia on Sat, 25 Sep 2021 21:33:16 +0530
1 Introduction Mutex is a basic means of concurrency control. It is a concurrency control mechanism established to avoid competition. In short, it is to control concurrency For example, can we get the results we want below? func main() { sum :=0 var w sync.WaitGroup for i:=0;i
Posted by protokol on Sun, 26 Sep 2021 00:34:50 +0530
introduce Users who have used GRPC should know that the protocol buffer file needs to use the relevant command line to compile the *. proto file into a *. go file. Different command line files will be used according to different needs. Taking Go language as an example, we need the following comUTF-8...
Posted by d3vilr3d on Mon, 27 Sep 2021 00:50:54 +0530
Character, string, and Boolean types Because there are relatively few characters and Boolean types, they are put together with string types (make up the space). Ha ha, I don't say much. Let's look at them one by one. Character type In Go language, in fact, character types do not exist. PersonalUTF-8...
Posted by CodeToad on Mon, 27 Sep 2021 17:09:14 +0530
1. Packaging and Tool Chain In the GO language, packages are a very important concept, and their design philosophy is to use packages to encapsulate the functionality of different semantic units. By doing so, you can better reuse code and have better control over the use of data within each pacUTF-8...
Posted by Blaze(!) on Tue, 28 Sep 2021 22:55:23 +0530
OpenTelemetry Previously, I learned what was organized when I learned opentelemetry. I only learned how to organize, with my own understanding, and corrections. The reprint indicates the source. Original:http://dopaminer.xyz/2021/06/14/opentelemetry/#more 1.What OpenTelemetry is for OpenTelemetUTF-8...
Posted by surion on Thu, 30 Sep 2021 21:36:18 +0530
Principle and implementation of classical consensus PoW 1. Introduction to PoW PoW(Proof of Work), short for workload proof, was first used to prevent denial of service attacks and filter spam. It is now one of the most common and effective consensus algorithms in block chains. The most popularUTF-8...
Posted by logicsound on Fri, 01 Oct 2021 21:47:04 +0530