Part of the spring of 22

Bamboo cloud technology has one, two and three aspects: What are the potential safety hazards of the project (I see that I have more safety development, which extends to) enterprises or services? (I answered external hacker attacks, loopholes and social workers' disclosure; it is concluded that the internal hidden dangers are greater) - " ...

Added by damic on Thu, 03 Mar 2022 08:56:35 +0200

The Internal Implementation and Basic Functions of Go Language Actual Array

Write before Well, learn GO, so I have this articleBowen is one of the reading notes of GO Language Actual WarMainly related to array knowledge No one in the world is supposed to be nice to you except your parents. Jianlai, Prince of Fire Play Internal implementation and basic functions of arrays Arrays are the basic data structures fo ...

Added by FormatteD_C on Wed, 02 Mar 2022 19:27:49 +0200

Relationship among functions, methods and interfaces in Go language

Why is there a function? At first glance, this problem is a bit SB. The function must be written for use, but can't I implement my steps step by step to realize the function? Yes, but on the one hand, it will cause code redundancy and heavy workload. On the other hand, it is unsightly and concise. In my opinion, function is to extract the ...

Added by WebGeek182 on Tue, 01 Mar 2022 08:28:55 +0200

Unit testing in golang

Excellent code habits must be accompanied by unit testing, which is also the philosophy of go language design;Many foreign companies and excellent programmers pay more attention to TDD, but it is very rare in China; (TDD: Test Driven Development)In any case, learning and using golang unit tests is not a waste of time, but to make your code more ...

Added by mook on Tue, 01 Mar 2022 06:22:28 +0200

Gopher to Rust hot eye grammar ranking

Gopher to Rust hot eye grammar rankingAuthor: Zhongyi - sealos author, sealer initiatorTOP 10 often forget to write semicolonsfn add_with_extra(x: i32, y: i32) -> i32 { let x = x + 1; // sentence let y = y + 5; // sentence x + y // expression }When you first turn from golang, you must often forget to write semicolons. For Rust la ...

Added by N1CK3RS0N on Mon, 28 Feb 2022 11:32:54 +0200

There is no one of the strongest code self-test methods in history!

Special note: This is really not the title party. I have written code for 20 + years. I really think go fuzzing is the most awesome code self-test method I have ever seen. When I used the AC automata algorithm to improve the keyword filtering efficiency (by ~ 50%) and the processing mechanism of mapreduce for panic, I found the edge bug th ...

Added by besbajah on Mon, 28 Feb 2022 04:17:41 +0200

[Go advanced concurrent programming] Mutex

Mutex is the most basic means of access control to critical resources in concurrent programs. Mutex is the native implementation of mutex in Go language.data structureSource package Src / sync / Mutex The data structure of Mutex is defined in go:type Mutex struct { state int32 sema uint32 }The state field indicates the status of the mu ...

Added by ganesh on Sun, 27 Feb 2022 11:06:26 +0200

Go Web programming practice -- Reflection

reflex Like other languages, the reflection of Go language also refers to the ability of a computer program to access, detect and modify its own state or behavior when it is running. In the reflect package, it defines an interface and a structure, namely reflect Type interface and reflect Value structure, which provides many functions to ...

Added by blacklotus on Fri, 25 Feb 2022 12:37:51 +0200

Microservices have everything from code to k8s deployment (k8s deployment)

We will use a series to explain the complete practice of microservices from requirements to online, from code to k8s deployment, from logging to monitoring. The whole project uses the micro services developed by go zero, which basically includes go zero and some middleware developed by relevant go zero authors. The technology stack used is bas ...

Added by darktimesrpg on Fri, 25 Feb 2022 03:34:11 +0200

Go channel knowledge summary

What is channel brief introduction One of the core ideas of Go language is "sharing memory by means of communication", and channel is its best embodiment. channel provides a mechanism to synchronize two functions executed concurrently, and allows two functions to communicate by passing specific types of values to each other chan ...

Added by amma on Thu, 24 Feb 2022 17:23:23 +0200